<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

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

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

Reply via email to