<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=418282107-05032007><FONT face=Arial color=#0000ff size=2>Dear 
Greger,</FONT></SPAN></DIV>
<DIV><SPAN class=418282107-05032007><FONT face=Arial color=#0000ff 
size=2><BR>Thank you for your advice.<BR><BR>May i seek your advice where can i 
find the exec command from ser.cfg? Is there any 
reference?<BR>Thanks.<BR><BR>Regards,<BR>Howard<BR></FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader><FONT face="Times New Roman" 
  size=2>-----Original Message-----<BR><B>From:</B> Greger V. Teigre 
  [mailto:greger@teigre.com]<BR><B>Sent:</B> Monday, March 05, 2007 3:03 
  PM<BR><B>To:</B> Goh, Tee-Yong<BR><B>Cc:</B> karim basraoui; 
  serusers@lists.iptel.org<BR><B>Subject:</B> Re: [Serusers] SIP 
  SER<BR><BR></FONT></DIV>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 content="MSHTML 6.00.6000.16414" name=GENERATOR>
    <DIV id=idOWAReplyText23182 dir=ltr>
    <DIV dir=ltr><FONT face=Arial color=#000000 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
      <DIV>
      <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Hi 
      Karim,</FONT></SPAN></DIV>
      <DIV><SPAN></SPAN>&nbsp;</DIV>
      <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Yes you are 
      right.<BR>Please advice.</FONT></SPAN></DIV>
      <DIV><SPAN><FONT face=Arial color=#0000ff 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
          <DIV>
          <DIV><SPAN><FONT face=Arial color=#0000ff 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
              <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 width="90%" SIZE=4>
_______________________________________________
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></BLOCKQUOTE><p></p><hr>This email (including any attachment) is subject to the following disclaimer: http://m1.com.sg/M1/misc/disclaimer<hr></BODY></HTML>