From:"Anonymous" <sip:Anonymous@anonymous.invalid>;

2,088 views
Skip to first unread message

maina maish

unread,
Feb 25, 2014, 3:15:18 AM2/25/14
to insted...@googlegroups.com
 
Hi All,

How can i fix From:"Anonymous" <sip:Anon...@anonymous.invalid>; when sending IVR calls? I need calls to display the number configured on voice channel.
I cant seem to find where to edit in asterisk or so.


Kakada Chheang

unread,
Feb 25, 2014, 4:21:35 AM2/25/14
to insted...@googlegroups.com
I think, you can add this option {callerid, CallerId} to ami_client:originate method in dispatch method in asterisk_broker.erl and the caller id should be the channel number which you can get by CallerId = channel:number(Channel).

Please run the command make deps in project_folder/broker directory and then sudo restart verboice to reload the Erlang application.

hope it may help you.

Regards,
Kakada


--
You received this message because you are subscribed to the Google Groups "InSTEDD Technology Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to instedd-tech...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Kakada Chheang

Software Developer, InSTEDD iLab Southeast Asia

http://www.ilabsoutheastasia.org

Office: +855 23 996750

Mobile: +855 69 860 012

Skype:  kakada.chheang

email: kak...@instedd.org

twitter: @iLabSEA

facebook: www.facebook.com/iLabSEA

maina maish

unread,
Feb 25, 2014, 4:37:01 AM2/25/14
to insted...@googlegroups.com
Thanks Kakada,

I will try that and let you know.


On Tuesday, February 25, 2014 12:21:35 PM UTC+3, Kakada Chheang wrote:
I think, you can add this option {callerid, CallerId} to ami_client:originate method in dispatch method in asterisk_broker.erl and the caller id should be the channel number which you can get by CallerId = channel:number(Channel).

Please run the command make deps in project_folder/broker directory and then sudo restart verboice to reload the Erlang application.

hope it may help you.

Regards,
Kakada
On Tue, Feb 25, 2014 at 3:15 PM, maina maish <maina...@gmail.com> wrote:
 
Hi All,

How can i fix From:"Anonymous" <sip:Anonymous@anonymous.invalid>; when sending IVR calls? I need calls to display the number configured on voice channel.

I cant seem to find where to edit in asterisk or so.


--
You received this message because you are subscribed to the Google Groups "InSTEDD Technology Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to instedd-tech...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

maina maish

unread,
Feb 25, 2014, 4:58:34 AM2/25/14
to insted...@googlegroups.com
Hi Kakada,

Below is what i have:

dispatch(#session{session_id = SessionId, channel = Channel, address = Address}) ->
  DialAddress = dial_address(Channel, Address),
  {ok, BrokerPort} = application:get_env(broker_port),
  ami_client:originate([
    {channel, DialAddress},
    {application, "AGI"},
    {data, ["agi://localhost:", integer_to_list(BrokerPort), ",", SessionId]},
    {async, true},
    {actionid, SessionId},
    {timeout, 60000},
    {variable, ["verboice_session_id=", SessionId]}

How do i add your suggestion?


On Tuesday, February 25, 2014 12:21:35 PM UTC+3, Kakada Chheang wrote:
I think, you can add this option {callerid, CallerId} to ami_client:originate method in dispatch method in asterisk_broker.erl and the caller id should be the channel number which you can get by CallerId = channel:number(Channel).

Please run the command make deps in project_folder/broker directory and then sudo restart verboice to reload the Erlang application.

hope it may help you.

Regards,
Kakada
On Tue, Feb 25, 2014 at 3:15 PM, maina maish <maina...@gmail.com> wrote:
 
Hi All,

How can i fix From:"Anonymous" <sip:Anonymous@anonymous.invalid>; when sending IVR calls? I need calls to display the number configured on voice channel.

I cant seem to find where to edit in asterisk or so.


--
You received this message because you are subscribed to the Google Groups "InSTEDD Technology Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to instedd-tech...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kakada Chheang

unread,
Feb 25, 2014, 5:05:58 AM2/25/14
to insted...@googlegroups.com
This is what code should be,

dispatch(#session{session_id = SessionId, channel = Channel, address = Address}) ->
  CallerId = channel:number(Channel),

  DialAddress = dial_address(Channel, Address),
  {ok, BrokerPort} = application:get_env(broker_port),
  ami_client:originate([
    {callerid, CallerId},

    {channel, DialAddress},
    {application, "AGI"},
    {data, ["agi://localhost:", integer_to_list(BrokerPort), ",", SessionId]},
    {async, true},
    {actionid, SessionId},
    {timeout, 60000},
    {variable, ["verboice_session_id=", SessionId]}

=> save => cd to project_dir/broker/ => make deps => sudo restart verboice => done

maina maish

unread,
Feb 25, 2014, 5:56:44 AM2/25/14
to insted...@googlegroups.com
Done,


dispatch(#session{session_id = SessionId, channel = Channel, address = Address}) ->
  CallerId = channel:number(Channel),
  DialAddress = dial_address(Channel, Address),
  {ok, BrokerPort} = application:get_env(broker_port),
  ami_client:originate([
    {callerid, CallerId},
    {channel, DialAddress},
    {application, "AGI"},
    {data, ["agi://localhost:", integer_to_list(BrokerPort), ",", SessionId]},
    {async, true},
    {actionid, SessionId},
    {timeout, 60000},
    {variable, ["verboice_session_id=", SessionId]}
  ]).

/opt/verboice/broker# make deps
make: `deps' is up to date.

 sudo restart verboice
verboice start/running

But still am getting "Anonymous" on calls:

From:"Anonymous" <sip:Anon...@anonymous.invalid>;tag=as6610985f
To:<sip:XXXX@XXXXX>;tag=jWWBhg3cAhY9c.B1
Via:SIP/2.0/UDP XXXX:5060;branch=z9hG4bK31462b02;rport
Call-ID:7515bfcb7e24532735ca0bce35afd81b@XXXX
CSeq:102 INVITE
Reason:X.int ;reasoncode=0x00000C01;add-info=0135.0001.0000

<------------->
--- (8 headers 0 lines) ---
    -- Got SIP response 484 "" back from XXXXX:5060
Transmitting (NAT) to XXXX:5060:
ACK sip:XXXX@XXXX SIP/2.0
Via: SIP/2.0/UDP XXXX:5060;branch=z9hG4bK31462b02;rport
Max-Forwards: 70
From: "Anonymous" <sip:Anon...@anonymous.invalid>;tag=as6610985f
To: <sip:XXXXX@XXXXX>;tag=jWWBhg3cAhY9c.B1
Contact: <sip:Anonymous@XXXX:5060>
Call-ID: 7515bfcb7e245327...@172.21.42.21
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.8.10.1~dfsg-1ubuntu1
Content-Length: 0

Kakada Chheang

unread,
Feb 25, 2014, 6:55:15 AM2/25/14
to insted...@googlegroups.com

make deps says, it up to date mean ur changed doesn't apply, please make sure you modified on the right location.

maina maish

unread,
Feb 25, 2014, 7:57:50 AM2/25/14
to insted...@googlegroups.com
When you say "project_dir" what do you mean exactly? e.g?


On Tuesday, February 25, 2014 2:55:15 PM UTC+3, Kakada Chheang wrote:

make deps says, it up to date mean ur changed doesn't apply, please make sure you modified on the right location.

On Feb 25, 2014 5:56 PM, "maina maish" <maina...@gmail.com> wrote:
Done,

dispatch(#session{session_id = SessionId, channel = Channel, address = Address}) ->
  CallerId = channel:number(Channel),
  DialAddress = dial_address(Channel, Address),
  {ok, BrokerPort} = application:get_env(broker_port),
  ami_client:originate([
    {callerid, CallerId},
    {channel, DialAddress},
    {application, "AGI"},
    {data, ["agi://localhost:", integer_to_list(BrokerPort), ",", SessionId]},
    {async, true},
    {actionid, SessionId},
    {timeout, 60000},
    {variable, ["verboice_session_id=", SessionId]}
  ]).

/opt/verboice/broker# make deps
make: `deps' is up to date.

 sudo restart verboice
verboice start/running

But still am getting "Anonymous" on calls:

From:"Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as6610985f
To:<sip:XXXX@XXXXX>;tag=jWWBhg3cAhY9c.B1
Via:SIP/2.0/UDP XXXX:5060;branch=z9hG4bK31462b02;rport
Call-ID:7515bfcb7e24532735ca0bce35afd81b@XXXX
CSeq:102 INVITE
Reason:X.int ;reasoncode=0x00000C01;add-info=0135.0001.0000

<------------->
--- (8 headers 0 lines) ---
    -- Got SIP response 484 "" back from XXXXX:5060
Transmitting (NAT) to XXXX:5060:
ACK sip:XXXX@XXXX SIP/2.0
Via: SIP/2.0/UDP XXXX:5060;branch=z9hG4bK31462b02;rport
Max-Forwards: 70
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as6610985f

To: <sip:XXXXX@XXXXX>;tag=jWWBhg3cAhY9c.B1
Contact: <sip:Anonymous@XXXX:5060>

Kakada Chheang

unread,
Feb 25, 2014, 8:07:36 AM2/25/14
to insted...@googlegroups.com

I mean the deployment directory, are you deploy Verboice from source via Capistrano or using vagrant?

maina maish

unread,
Feb 25, 2014, 10:30:23 AM2/25/14
to insted...@googlegroups.com

maina maish

unread,
Feb 25, 2014, 10:30:43 AM2/25/14
to insted...@googlegroups.com

Kakada Chheang

unread,
Feb 25, 2014, 10:40:44 AM2/25/14
to insted...@googlegroups.com

Please try to run command: make -C broker deps in /opt/verboice/broker/ directory.

maina maish

unread,
Feb 25, 2014, 12:32:16 PM2/25/14
to insted...@googlegroups.com
Got error:

/opt/verboice/broker#  make -C broker deps
make: *** broker: No such file or directory.  Stop.

Kakada Chheang

unread,
Feb 25, 2014, 3:29:48 PM2/25/14
to insted...@googlegroups.com

Oh sorry please run the command: make -C broker deps in /opt/verboice/ directory

maina maish

unread,
Feb 25, 2014, 11:11:33 PM2/25/14
to insted...@googlegroups.com

Results:

/opt/verboice# make -C broker deps
make: Entering directory `/opt/verboice/broker'

make: `deps' is up to date.
make: Leaving directory `/opt/verboice/broker'



On Tuesday, February 25, 2014 11:15:18 AM UTC+3, maina maish wrote:
 
Hi All,

How can i fix From:"Anonymous" <sip:Anonymous@anonymous.invalid>; when sending IVR calls? I need calls to display the number configured on voice channel.

Kakada Chheang

unread,
Feb 26, 2014, 1:54:19 AM2/26/14
to insted...@googlegroups.com
It should be rebuild the Erlang application if you was modified any files under the /opt/verboice/broker/ directory, please make sure you was modified file under the directory.


--
You received this message because you are subscribed to the Google Groups "InSTEDD Technology Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to instedd-tech...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

maina maish

unread,
Feb 26, 2014, 9:07:40 AM2/26/14
to insted...@googlegroups.com

asterisk_broker.erl file is under /opt/verboice/broker/src/asterisk

maina maish

unread,
Feb 27, 2014, 10:33:12 PM2/27/14
to insted...@googlegroups.com
Any more suggestions?

Juan Wajnerman

unread,
Mar 3, 2014, 1:05:04 PM3/3/14
to insted...@googlegroups.com
You have to run just "make" from within "broker" dir to build the broker. "make deps" is used to download the verboice dependencies which you didn't change.

maina maish

unread,
Mar 4, 2014, 12:33:07 AM3/4/14
to insted...@googlegroups.com
That has worked, thanks so much Juan and Kakada for your help.


On Tuesday, February 25, 2014 11:15:18 AM UTC+3, maina maish wrote:
 
Hi All,

How can i fix From:"Anonymous" <sip:Anonymous@anonymous.invalid>; when sending IVR calls? I need calls to display the number configured on voice channel.
Reply all
Reply to author
Forward
0 new messages