This is sort of a simple requirement, but one opens up many issues.
Have a look at this:
http://www.voip-info.org/wiki/view/Asterisk+at+large

The ser fifo can be used for initiating SIP messages, sems uses it. I'm not aware of anybody using the SIP stack from within a module. You basically want to be a UAS, but if you shoot off a message in a module and then end the processing, there will be no UAS to respond (ex. handle the ACK). Thus you need some entity outside ser that can process the responses.

A better way of doing it would be to have your module write to a queue (for example a mysql table) and then have an external process send messages. You could use sipsak, sipp or maybe the new sems (which has more b2bua capaibilities through using the SIP stack of ser).

Does that help?
g-)

srinivas.sriram@wipro.com wrote:

Hi Greger

 

         I have checked with sipp , with that we can send messages. But What is my requirement is i have write the code for constructing SIP “MESSAGE” message for a given sip uri. This I have to call form  one of the  ser   module.

            Total what I am trying is to send a IM message when there is a missed call for a particular SIP uri. In SER there is a code for writing into the data base of the sip uri , when there is a missed call for that Uri. At this point we have to send IM message.

 

Thank you,

 

 

Regards,

Sriram Srinivas.

 


From: Greger V. Teigre [mailto:greger@teigre.com]
Sent: Monday, June 19, 2006 5:35 PM
To: Srinivas Sriram (WT01 - IP-Multimedia Carrier & Ent Networks)
Cc: serusers@iptel.org
Subject: Re: [Serusers] How to send instant message programmatically

 

You are better off generating the message outside SER. SER is not a UAS. Have a look at sipsak or sipp (both found at sourceforge, I think).
g-)

srinivas.sriram@wipro.com wrote:

Hello,

 

I am using SER-0.9.6.  How to send instant message programmatically, how to build sip message and which function can by used(like t_uac, t_request).

Can you help where and which to be changed in ser code.

 

Thank you,

                                                                       

 

 

Regards,

Sriram Srinivas.


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

 



 
_______________________________________________
Serusers mailing list
Serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
  

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com