[asterisk-users] How can I get SIP/SDP values to a variable?

Rennes Neps Rennes.Neps at Elion.ee
Tue Mar 13 05:58:15 CDT 2012


Hello all!

I wonder if there's a way to read SDP values into a variable in Asterisk? I have successfully used SIP_HEADER function to get all I want out of SIP part of the message, no problem. But I would like to be able to read SDP part as well, anyone?
Reason I want to to this is: testing the SIP_ALG condition in incoming invite message. Majority of cases can be detected just by comparing src ip address and "via", but some devices only rewrite SDP "c" value for example and so on ...
I haven't found any information anywhere how to achieve reading SDP with asterisk. I can use 1.8 and 10 versions.

Thanks in advance

Rennes Neps
Elion Ettevõtted AS
rennes.neps at elion.ee

 


More information about the asterisk-users mailing list