<DIV>As&nbsp;we all&nbsp;known, Opensips is easy to extend. </DIV>
<DIV>Now I want to extend the Opensips with MESSAGE method like this:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; I want to using the message body&nbsp;in the&nbsp;MESSAGE request method, the&nbsp;SIP message is &nbsp;such like below(just an half-baked example):</DIV>
<DIV>&nbsp;</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:&nbsp;10&nbsp; </EM></STRONG></DIV>
<DIV><STRONG><EM>createRoom</EM></STRONG></DIV>
<DIV>&nbsp;</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>&nbsp;to extend my Opensips can process this&nbsp;message?</DIV>
<DIV>The process means when my Opensips received this message,&nbsp;</DIV>
<DIV>it can parser the sip message and&nbsp;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>&nbsp;</DIV>
<DIV>any suggestions?(how and where to get the message body? where to parser the message body "createRoom"? and so on...)</DIV>
<DIV>&nbsp;</DIV>
<DIV>many thanks &amp; Best Regards,</DIV>
<DIV>donny</DIV>
<DIV>&nbsp;</DIV>