[OpenSIPS-Devel] How to extend opensips
蒋东明
dmjiang at qq.com
Sat Nov 19 12:09:07 CET 2011
As we all known, Opensips is easy to extend.
Now I want to extend the Opensips with MESSAGE method like this:
I want to using the message body in the MESSAGE request method, the SIP message is such like below(just an half-baked example):
MESSAGE SIP:user1 at domain.com SIP/2.0
Via: SIP/2.0/UDP ......
Max-Forwards:70
From: ......;tag=49583
To: ......
Call-ID:......
CSeq: 1 MESSAGE
Content-Type:text/plain
Content-Length: 10
createRoom
this sip message will be send to Opensips by a UAC.
What I want to ask for help is----
How should I modify the source code of opensips to extend my Opensips can process this message?
The process means when my Opensips received this message,
it can parser the sip message and get the message body "createRoom",
and then call the DB module to create a conference room in the local DB(such as mysql).
any suggestions?(how and where to get the message body? where to parser the message body "createRoom"? and so on...)
many thanks & Best Regards,
donny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20111119/863e0211/attachment.htm>
More information about the Devel
mailing list