[asterisk-users] Checking SIP Headers existence and content

VoIP Question voip.question at gmail.com
Mon Oct 4 22:13:49 CDT 2010


Hello,

I would like to verify if a specific SIP header exists, and if yes, extract
the partial content from another header.

1. Is there a way to verify if a specific header exists?
2. How do I extract data that is between the first : and the following @?
Specifically, The data looks like <sip:1234567890 at 10.0.0.1:5060> and I would
like to get only the 1234567890

I tried to use the CUT() command, but without success.

Thank you.

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


More information about the asterisk-users mailing list