[Asterisk-Users] "CALLED NUMBER" in IAX2

Michael Stearne mstearne at entermix.com
Thu Dec 22 12:53:31 MST 2005


I am trying to determine the number that was called in via an IAX2 channel.

When using debug:

IAX2 Debugging Enabled
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00013ms  SCall: 00814  DCall: 00000 [66.234.228.170:4569]
   VERSION         : 2
   CALLED NUMBER   : 609XXXXXXX
   CALLING NUMBER  : 347XXXXXXX
   CALLING NAME    : 347XXXXXX
   LANGUAGE        : en
   USERNAME        : voicepulse-in-01
   FORMAT          : 4
   CAPABILITY      : 1086
   ADSICPE         : 2
   DATE TIME       : 194420173

What is the variable that CALLED NUMBER is stored in?  I would like to
access through php_agi.  $agi->request['agi_dnid'] works for SIP
channels but not IAX.

Thanks!
Michael



More information about the asterisk-users mailing list