[asterisk-users] Accessing SIP URI (not ${SIPURI})

Leo Ann Boon leo at datvoiz.com
Thu Aug 17 16:30:19 MST 2006


kjcsb wrote:
> How to I access the URI from an Invite:
>
> INVITE sip:5556678 at 60.234.111.222
>
> I want to set a variable to equal 5556678. The variable ${SIPURI} 
> returns the From URI.
See:

http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sip_header
http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo


You'll probably need to use 'cut' to extract the relevant parts.

Cheers.




More information about the asterisk-users mailing list