[asterisk-users] Variable Name needed

David Gibbons dave at videon-central.com
Wed Dec 2 16:02:39 CST 2009


<snip>
My question is, Does anyone know what variable I would use to get the information for "To" from these SIP calls, the below is the actual SIP packet obtained from the CLI with SIP Debug On. Other than I stripped out the IPs
</snip>

The variable you are seeking is ${SIP_HEADER(TO)}

I parse the SIP headers from callcentric like this:
Set(calldest=${CUT(CUT(SIP_HEADER(To),@,1),:,2)})

Which gives me a real US number like 1xxxxxxxxxx.

Credit for the parsing syntax goes to someone else (not sure where I found it online).

--Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091202/cb6ebc08/attachment.htm 


More information about the asterisk-users mailing list