The following AMI command works well for all of the information I want:

action: Getvar
actionid: act1
channel: PJSIP/Twilio-NA-W-3-In-00000028
Variable: CHANNEL(pjsip,XXXX)

Where XXXX can be one of the many available items.  However, when I create a 
call from A to B, all of the items return properly except: local_addr and 
remote_addr.  More specifically, they return correctly for the A leg (that 
initiated the call), but are blank for the B leg.  According to the 
asterisk.org docs:

*         local_addr - On inbound calls, the full IP address and port number 
that the INVITE request was received on. On outbound calls, the full IP address 
and port number that the INVITE request was transmitted from.

*         remote_addr - On inbound calls, the full IP address and port number 
that the INVITE request was received from. On outbound calls, the full IP 
address and port number that the INVITE request was transmitted to.

So they should be set for the B leg (outbound invite) as well but they are not; 
they are blank.  Is this a bug or am I misunderstanding something?

 

Thanks

Brian

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to