<DIV>As we all known, Opensips is easy to extend. </DIV>
<DIV>Now I want to extend the Opensips with MESSAGE method like this:</DIV>
<DIV> I want to using the message body in the MESSAGE request method, the SIP message is such like below(just an half-baked example):</DIV>
<DIV> </DIV>
<DIV><EM><STRONG>MESSAGE</STRONG> SIP:user1@domain.com SIP/2.0<BR>Via: SIP/2.0/UDP ......</EM></DIV>
<DIV><EM>Max-Forwards:70<BR>From: ......;tag=49583<BR>To: ......</EM></DIV>
<DIV><EM>Call-ID:...... </EM></DIV>
<DIV><STRONG><EM>CSeq: 1 MESSAGE<BR>Content-Type:text/plain<BR>Content-Length: 10 </EM></STRONG></DIV>
<DIV><STRONG><EM>createRoom</EM></STRONG></DIV>
<DIV> </DIV>
<DIV>this sip message will be send to Opensips by a UAC. </DIV>
<DIV>What I want to ask for help is----</DIV>
<DIV><STRONG>How should I modify the source code of opensips</STRONG> to extend my Opensips can process this message?</DIV>
<DIV>The process means when my Opensips received this message, </DIV>
<DIV>it can parser the sip message and get the message body "createRoom",</DIV>
<DIV>and then call the DB module to create a conference room in the local DB(such as mysql).</DIV>
<DIV> </DIV>
<DIV>any suggestions?(how and where to get the message body? where to parser the message body "createRoom"? and so on...)</DIV>
<DIV> </DIV>
<DIV>many thanks & Best Regards,</DIV>
<DIV>donny</DIV>
<DIV> </DIV>