<!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">
You can do that using exec command from ser.cfg when you receive a
REGISTER. Use sipp or the internal SER stack to create new messages
(see faqs on iptel.org)<br>
Or <a class="moz-txt-link-freetext" href="http://iptel.org/sems">http://iptel.org/sems</a> if you want to do it in a better way.<br>
g-)<br>
<br>
Goh, Tee-Yong wrote:
<blockquote
 cite="midDB2D6CBCCC4A364A86DF42719838B7AC030253A2@mocexb01.m1.local"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
  <div id="idOWAReplyText23182" dir="ltr">
  <div dir="ltr"><font color="#000000" face="Arial" size="2">Hi Karim,<br>
  <br>
Thank you for your advice. Noted your advice.<br>
  <br>
Yes. My objective here is once the SER receives a REGISTER message from
one of the client, it will auto generate "INVITE" messages to the
clients.<br>
  <br>
I am using the ser-0.9.6. I have looked through the coding as such</font></div>
  <div dir="ltr">&nbsp;</div>
  <div dir="ltr"><font face="Arial" size="2">/ser-0.9.6/modules/nathelper/nathelper.c</font></div>
  <div dir="ltr"><font face="Arial" size="2">/ser-0.9.6/modules/nathelper/nathelper.cfg</font></div>
  <div dir="ltr"><font face="Arial" size="2">/ser-0.9.6/modules/nathelper/nathelper_rrtpp.cfg</font></div>
  <div dir="ltr"><font face="Arial" size="2">/ser-0.9.6/modules/registrar/save.c</font></div>
  <div dir="ltr"><font face="Arial" size="2">/ser-0.9.6/modules/registrar/reply.c</font></div>
  <div dir="ltr"><font face="Arial" size="2">/ser-0.9.6/modules/registrar/sip_msg.c</font></div>
  <div dir="ltr">&nbsp;</div>
  <div dir="ltr"><font face="Arial" size="2">Anyone knows where can i
find the portion where once the SER receives the REGISTER message, it
responds with 200 OK to the client? Can i find them inside nathelper or
registrar or paser?<br>
  <br>
Apologies if any inconvenience caused.<br>
  <br>
Thank you.<br>
  <br>
Regards,<br>
Tee Yong</font></div>
  <div dir="ltr">&nbsp;</div>
  </div>
  <div dir="ltr"><br>
  <hr tabindex="-1">
  <font face="Tahoma" size="2"><b>From:</b> karim basraoui
[<a class="moz-txt-link-freetext" href="mailto:basraouik@gmail.com">mailto:basraouik@gmail.com</a>]<br>
  <b>Sent:</b> Sat 3/3/2007 8:36 PM<br>
  <b>To:</b> Goh, Tee-Yong<br>
  <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a><br>
  <b>Subject:</b> Re: [Serusers] SIP SER<br>
  </font><br>
  </div>
  <div>Well, first of all a SER server does not generate messages it
only interprets the messages it receives. so it can not generate INVITE
messages. so if you want to call several clients from one client, this
one has to initiate the call by sending an INVITE to SER. <br>
  <br>
When receiving the INVITE message, SER will forward it to the callees.
i did not try this yet, but i think that you can do this with the
method : "forward" as follows: <br>
  <br>
if(method == INVITE) { <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward("callee1_IP_address","callee1_port");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward("callee2_IP_address","callee2_port");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward("callee3_IP_address","callee3_port"); <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #and so on ...<br>
}<br>
  <br>
try this for example... and let me know if it works or not. <br>
  <br>
ps: (personnally i think it won't work :p)<br>
  <br>
  <div><span class="gmail_quote">2007/3/3, Goh, Tee-Yong &lt; <a
 href="mailto:gohty@m1.com.sg">gohty@m1.com.sg</a>&gt;:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div><span><font color="#0000ff" face="Arial" size="2">Hi Karim,</font></span></div>
    <div><span></span>&nbsp;</div>
    <div><span><font color="#0000ff" face="Arial" size="2">Yes you are
right.<br>
Please advice.</font></span></div>
    <div><span><font color="#0000ff" face="Arial" size="2"><br>
Thank you.<br>
    <br>
Regards,<br>
Howard</font></span></div>
    <blockquote>
      <div><font face="Times New Roman" size="2"><span class="q">-----Original
Message-----<br>
      <b>From:</b> karim basraoui [mailto:<a
 href="mailto:basraouik@gmail.com" target="_blank">basraouik@gmail.com</a>]<br>
      </span><span class="q"><b>Sent:</b> Saturday, March 03, 2007 8:01
PM<br>
      <b>To:</b> Goh, Tee-Yong<br>
      </span></font>
      <div><span class="e" id="q_11117b618dfafb65_3"><font
 face="Times New Roman" size="2"><b>Cc:</b> <a
 href="mailto:serusers@lists.iptel.org" target="_blank">serusers@lists.iptel.org</a><br>
      <b>Subject:</b> Re: [Serusers] SIP SER<br>
      <br>
      </font></span></div>
      </div>
      <div><span class="e" id="q_11117b618dfafb65_5">So if i
understand, when a clint registers, SER will automatically send invites
to the other clients and make connections with them?<br>
      <br>
      <div><span class="gmail_quote">2007/3/3, Goh, Tee-Yong &lt;<a
 href="mailto:gohty@m1.com.sg" target="_blank"> gohty@m1.com.sg</a>&gt;:</span>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div>
        <div><span><font color="#0000ff" face="Arial" size="2">Dear
Karim,<br>
        <br>
Thank you for your reply.</font></span></div>
        <span>
        <div><br>
        <font face="Arial"><font color="#0000ff"><font size="2">Yes you
are right. I have having difficulty searching for this for past 2
months.<br>
        <br>
Yes. Here is what i want. Once i receive the REGISTER messages, my SER
will send out "INVITE<span>" message to my other clients. This is what
i am intended to do. However, i could not search for the right coding
inside the ser-0.9.6.<br>
        <br>
Please advice and apologies if any inconvenience caused for you.<br>
        <br>
Thanks.<br>
        <br>
Regards,<br>
Howard</span></font></font></font></div>
        </span></div>
        <blockquote>
          <div><font face="Times New Roman" size="2">-----Original
Message-----<br>
          <b>From:</b> karim basraoui [mailto:<a
 href="mailto:basraouik@gmail.com" target="_blank">basraouik@gmail.com</a>]<br>
          <b>Sent:</b> Saturday, March 03, 2007 7:18 PM<br>
          <b>To:</b> Goh, Tee-Yong<br>
          <b>Subject:</b> Re: [Serusers] SIP SER<br>
          <br>
          </font></div>
Hi,<br>
          <br>
Do you want to make changes on SER behaviour when it receives REGISTER
messages. If it's the case you can make a condition in the "ser.cfg"
file, in the bloc "route{ ... }". for example: <br>
route {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method == "REGISTER")<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { #what you want to do};<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
          <br>
          <br>
          <div><span class="gmail_quote">2007/3/3, Goh, Tee-Yong &lt;<a
 href="mailto:gohty@m1.com.sg" target="_blank">gohty@m1.com.sg </a>&gt;:</span>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <div>
            <p><font face="Verdana" size="2">Hi,<br>
            <br>
May i know from the SER-0.9.6, where can i look for and make changes
for the SER when receiving "REGISTER" message and responsing " 200 OK"
back to the corresponding node or clients?<br>
            <br>
Would appreciate your assistance and advice as soon as possible as i
have difficultly locating the coding. Please advice where i can find
the script to edit the above mentioned messages. </font></p>
            <p><font face="Verdana" size="2">Apologies for the
inconvenience caused.<br>
            <br>
Thank you.<br>
            <br>
Regards,<br>
Howard</font> </p>
            <hr> This email (including any attachment) is subject to
the following disclaimer: <a href="http://m1.com.sg/M1/misc/disclaimer"
 target="_blank">http://m1.com.sg/M1/misc/disclaimer </a>
            <hr> </div>
            <br>
_______________________________________________<br>
Serusers mailing list<br>
            <a href="mailto:Serusers@lists.iptel.org" target="_blank">Serusers@lists.iptel.org</a><br>
            <a href="http://lists.iptel.org/mailman/listinfo/serusers"
 target="_blank">http://lists.iptel.org/mailman/listinfo/serusers</a><br>
            <br>
          </blockquote>
          </div>
          <br>
          <br clear="all">
          <br>
-- <br>
BASRAOUI Karim<br>
          <a href="http://www.basraouik.afrikart.net" target="_blank">www.basraouik.afrikart.net</a>
        </blockquote>
        <hr> This email (including any attachment) is subject to the
following disclaimer: <a href="http://m1.com.sg/M1/misc/disclaimer"
 target="_blank">http://m1.com.sg/M1/misc/disclaimer </a>
        <hr> </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
-- <br>
BASRAOUI Karim<br>
      <a href="http://www.basraouik.afrikart.net" target="_blank">www.basraouik.afrikart.net</a>
      </span></div>
    </blockquote>
    <hr> This email (including any attachment) is subject to the
following disclaimer: <a href="http://m1.com.sg/M1/misc/disclaimer"
 target="_blank">http://m1.com.sg/M1/misc/disclaimer</a>
    <hr> </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
BASRAOUI Karim<br>
  <a href="http://www.basraouik.afrikart.net">www.basraouik.afrikart.net</a>
  </div>
  <hr>This email (including any attachment) is subject to the following
disclaimer: <a class="moz-txt-link-freetext" href="http://m1.com.sg/M1/misc/disclaimer">http://m1.com.sg/M1/misc/disclaimer</a>
  <hr>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>