Arpit Mehta
2007-Dec-01 05:13 UTC
[asterisk-users] REFER mesage extraction using SIP_HEADER
Hi * users, I would like to extract the information present in the SIP REFER message that comes to asterisk. Would SIP_HEADER() allow me to do that ? I have used SIP_HEADER() for extracting the to and from SIP headers previously. Thanks Regards -- Arpit Mehta Graduate Student Department of Computer Science Columbia University Tel: 1-646-387-5998
Norman W. Franke
2007-Dec-01 06:31 UTC
[asterisk-users] REFER mesage extraction using SIP_HEADER
On Dec 1, 2007, at 12:30 AM, asterisk-users-request at lists.digium.com wrote:> I would like to extract the information present in the SIP REFER > message that comes to asterisk. Would SIP_HEADER() allow me to do that > ? I have used SIP_HEADER() for extracting the to and from SIP headers > previously.I wanted to do the exact same thing a while ago. However it is not possible as far as I can tell. I've tried it and verified the headers are being sent, but asterisk can't see them. It can read the headers from the original INVITE. This bug report: http://bugs.digium.com/view.php?id=4934 Complained of the same thing, but was ended as too much work and folks weren't sure it's even correct. Then this one: http://bugs.digium.com/print_bug_page.php?bug_id=8378 Talks about the Refered-By header in REFER messages, which seems to have been folded in to 1.4. It didn't solve the general case of other headers, however. I worked around it in my case, since the original invite actually had what I needed most of the time. Some odd cases just will remain broken. Norman Franke ASD, Inc. www.myasd.com