[asterisk-dev] SIP MESSAGE methode

René Oertel Rene.Oertel at cs.tu-chemnitz.de
Sun Oct 15 11:59:41 MST 2006


Hi,

a task in a project is to implement a softphone with the ability to send out
instant messages.
We have chosen the SIP MESSAGE methode beside the SIMPLE stuff. After some
code review of Asterisk 1.4.0-beta2 I've found in chan_sip.c the functions
called handle_request_message() and receive_message(). The problem is that I
don't understand exactly why receive_message() transforms the SIP Request
with the MESSAGE methode to an ast_frame and why it is then put into the
channel queue.

However I didn't found out what happen to the frame. How does it leave the
queue and how is it send to the receiver?

Maybe it is an idea to use the function transmit_message_with_text(), but I
had some problems to accurately set the proper parameter for sip_pvt of the
receiver with the available data in receive_message().

Thanks in advance!

René Oertel
Chemnitz University of Technology



More information about the asterisk-dev mailing list