<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This is sort of a simple requirement, but one opens up many issues. <br>
Have a look at this:<br>
<a class="moz-txt-link-freetext" href="http://www.voip-info.org/wiki/view/Asterisk+at+large">http://www.voip-info.org/wiki/view/Asterisk+at+large</a><br>
<br>
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. <br>
<br>
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).<br>
<br>
Does that help?<br>
g-)<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:srinivas.sriram@wipro.com">srinivas.sriram@wipro.com</a> wrote:
<blockquote
 cite="mid94350539FC77154CBBF37A9B9284133DB7A281@HYD-MKD-MBX01.wipro.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Hi Gr</span></font><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">eger</span></font><font
 color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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 &#8220;MESSAGE&#8221; message for
a given sip uri. This I have to call form &nbsp;one of the &nbsp;ser &nbsp;&nbsp;module.
  <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Thank you,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Regards,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Sriram
Srinivas.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
Greger V. Teigre [<a class="moz-txt-link-freetext" href="mailto:greger@teigre.com">mailto:greger@teigre.com</a>] <br>
  <b><span style="font-weight: bold;">Sent:</span></b> Monday, June 19,
2006 5:35
PM<br>
  <b><span style="font-weight: bold;">To:</span></b> Srinivas Sriram
(WT01 -
IP-Multimedia Carrier &amp; Ent Networks)<br>
  <b><span style="font-weight: bold;">Cc:</span></b> <a class="moz-txt-link-abbreviated" href="mailto:serusers@iptel.org">serusers@iptel.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[Serusers] How to
send instant message programmatically</span></font><font color="black"><span
 style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">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).<br>
g-)<br>
  <br>
  <a href="mailto:srinivas.sriram@wipro.com">srinivas.sriram@wipro.com</a>
wrote:
  <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Hello,<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">I am using
SER-0.9.6.&nbsp; How to send instant message programmatically, how to build
sip
message and which function can by used(like t_uac, t_request). <u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Can you help where
and which to be changed in ser code.<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Thank you,<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal" style="text-indent: 0.5in;"><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Regards,<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Sriram Srinivas.<u1:p></u1:p></span></font><o:p></o:p></p>
  <table class="MsoNormalTable" border="0" cellpadding="0">
    <tbody>
      <tr>
        <td
 style="padding: 0.75pt; background: white none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"
 bgcolor="white">
        <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><br>
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.
        <br>
        <br>
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.<br>
        <br>
        <a href="http://www.wipro.com">www.wipro.com</a><o:p></o:p></span></font></p>
        </td>
      </tr>
    </tbody>
  </table>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">

<hr align="center" size="4" width="90%">

</span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Serusers mailing list<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a
 href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
  </div>
  <table>
    <tbody>
      <tr>
        <td bgcolor="#ffffff"><font color="#000000"><br>
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.
        <br>
        <br>
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.<br>
        <br>
<a class="moz-txt-link-abbreviated" href="http://www.wipro.com">www.wipro.com</a><br>
        </font></td>
      </tr>
    </tbody>
  </table>
</blockquote>
</body>
</html>