[Asterisk-Users] "CALLED NUMBER" in IAX2

Rehan Ahmed rehan33 at gmail.com
Thu Dec 22 13:39:31 MST 2005


Hello

you can send it to the agi from the extensions.conf like this

exten => _X.,1,DeadAGI(agi.pl,${CALLERIDNUM},${EXTEN})
exten => _X.,2,Hangup

Then Capture it from the agi file it self.

If u need more assistance, please email or msn me on rehan at rehan.com

On 12/23/05, Michael Stearne <mstearne at entermix.com> wrote:
>
> 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
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



--
Rehan Ahmed AllahWala
http://www.SuperTec.com - Tommrow's Technology, Today.
http://www.didx.net - DID Number Exchange and Peering Service.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051222/7c4e9503/attachment.htm


More information about the asterisk-users mailing list