<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Sorry. Now fixed. </div><div>I was missing the obvious. </div><div>route section works as expected.</div><div>Apologies for the noise.</div><div><br></div><div>Regards</div><div>Phil</div><div><br>On 1 Oct 2014, at 08:22, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    Hello,<br>
    <br>
    can you check if there are log messages in syslog file? have you
    checked that kamailio is running?<br>
    <br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 01/10/14 08:45, Google - One wrote:<br>
    </div>
    <blockquote cite="mid:C3049569-F7DF-4268-8942-C9BF55B084F8@manx.biz" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div>Hi Daniel</div>
      <div><br>
      </div>
      <div>I've tried a couple of incantations;</div>
      <div><br>
      </div>
      <div>> kamailio -e</div>
      <div>> kamailio -E</div>
      <div>and a combination of the two.</div>
      <div><br>
      </div>
      <div>That's all.</div>
      <div><br>
        On 1 Oct 2014, at 07:06, Daniel-Constantin Mierla <<a moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
          How did you start it?<br>
          <br>
          Daniel<br>
          <br>
          <div class="moz-cite-prefix">On 01/10/14 02:27, White, Phil
            wrote:<br>
          </div>
          <blockquote cite="mid:CAKsv4qbfi+vsvZEZajv12rO5taSHOaQNRqoGfyzzGC+M13RnHw@mail.gmail.com" type="cite">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>
                      <div>Sorry Guys, I'm very new to this. Taking a
                        dive 'under the hood', to try to learn what is
                        going on, and to see what I can achieve.<br>
                        <br>
                      </div>
                      I have 1 sip device ( voip telephone) on the
                      network, constantly firing out REGISTER requests
                      (I have turned off my asterisk server!). That's
                      good.<br>
                    </div>
                    I have a terminal window open, running tcpdump.
                    That's good too - I can see what is going on.<br>
                    <br>
                  </div>
                  I also have kamailio - giving me absolutely nothing.
                  It's not  complicated config file. In fact it is the
                  simplest I could do. However, it logs nothing - and i
                  am expecting it to.<br>
                  <br>
                </div>
                Can someone put me out of my misery, and point out the
                glaring error I have?<br>
              </div>
              <div>How can I send messages to STDERR while testing?<br>
              </div>
              <div><br>
              </div>
              Cheers,<br>
              <br>
              Phil<br>
              <br>
              ----<br>
              <br>
              ## WARNING - FOR TESTING & EDUCTION ONLY<br>
              ####### Global Parameters #########<br>
              <br>
              debug=5<br>
              fork=no<br>
              log_stderror=yes<br>
              port=5060<br>
              <br>
              ####### Modules Section ########<br>
              <br>
              # set module path<br>
              mpath="/usr/local/lib/kamailio/modules/"<br>
              loadmodule "sl.so"<br>
              <br>
              ####### Routing Logic ########<br>
              <br>
              route{<br>
               if(method=="REGISTER") {<br>
                log(1,"this SIP request is a REGISTER message\n");<br>
                sl_send_reply("404", "No registrar");<br>
               };<br>
              <br>
               if (af!=INET6) {      <br>
                log(1,"Message received over IPv4 link\n");<br>
               };<br>
              <br>
               if(proto==UDP) {   <br>
                log(1,"SIP message received over UDP\n");<br>
               };<br>
              <br>
               if(status=="200") {<br>
                log(1,"this is a 200 OK reply\n");<br>
               };<br>
              <br>
               if(uri==myself) {<br>
                log(1,"the request is for local processing\n");<br>
               };<br>
              }<br>
              <br>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
          </blockquote>
          <br>
          <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>SIP Express Router (SER) and Kamailio (OpenSER) -
            sr-users mailing list</span><br>
          <span><a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></span><br>
          <span><a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
        </div>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  

</div></blockquote></body></html>