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:[email protected] 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
_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to