[asterisk-dev] Parsing SIP INFO Method in asterisk

Husnain Taseer husnain.taseer at gmail.com
Mon Feb 22 12:44:24 CST 2016


Hello Folks,
I am using asterisk (mixmonitor) as a recording server for Huawei U1911
Unified Gateway, There is an option available in Huawei Unified gateway to
integrate a third party recording machine by doing some configuration. In
short when call between A and B party via Huawei UG got establish it sends
an INVITE to a pre-configured extension and trunk (in my case
5555 at myasteriskserver.com) and starts sending both parties RTP to that
recording server.

When I receive INVITE on asterisk server I only get the caller number.
Information of callee is not there as in this case callee will always be
5555. The good thing about Huawei UG is that it sends SIP INFO packet after
the call established on recording machine (asterisk server). This SIP INFO
has content type text/xml in message body and contains information of both
parties.

Now I want to parse that SIP INFO packet to get and update the information
of callee in the CDR. Is there any way to do it in asterisk ?

I have few methods in my mind to do it like write a script which will sniff
INFO packet, parse it and will update the CDR database. The other thing I
can do is that I can use opensips on the edge and can parse packet there
and then relay the call to the asterisk server for recording. But I want to
do it in asterisk in the dialplan or in source code.

Please advice.

Regards,
*Husnain Taseer*
*VoIP Developer*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20160222/e1c2b347/attachment.html>


More information about the asterisk-dev mailing list