<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 27/08/15 12:14, Loic Chabert wrote:<br>
    </div>
    <blockquote
cite="mid:CADLP+M18VFdvWZx21n-pRdwPUfi2Uu9djRVaURjLNLuiPHT2sQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello,<br>
          <br>
          pua_set_publish() is run afer save(). Order of function is
          important ?<br>
        </div>
      </div>
    </blockquote>
    <br>
    yes, the first is just setting a flag for a callback executed by
    save in order to know what do to in that callback.<br>
    <br>
    <blockquote
cite="mid:CADLP+M18VFdvWZx21n-pRdwPUfi2Uu9djRVaURjLNLuiPHT2sQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Too many logs with debug=3, do you have a solution to debug
          only one module, and not all at the same time ?<br>
        </div>
      </div>
    </blockquote>
    <br>
    Yes, you can have per module debug level, look at debugger module.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CADLP+M18VFdvWZx21n-pRdwPUfi2Uu9djRVaURjLNLuiPHT2sQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Regards & thanks.<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-08-26 12:07 GMT+02:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
              <br>
              are you still running pua_set_publish() before calling
              save() of registrar module?<br>
              <br>
              Try to look at logs with debug=3 when a register is
              processed.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 26/08/15 10:08, Loic Chabert wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <div>
                                  <div>
                                    <div>Hello,<br>
                                      <br>
                                    </div>
                                    SIP is sent over UDP.<br>
                                  </div>
                                  <br>
                                </div>
                                I have check (on all interface with
                                tcpdump -i any), and now, subscription
                                is OK:<br>
                              </div>
                              - 102 subscribe to 103, but authentication
                              needed<br>
                            </div>
                            - 102 subscribe to 103 with authentication
                            informations<br>
                          </div>
                          - kamailio sent a 200OK, with subscription
                          state OK<br>
                          <br>
                        </div>
                        But when 103 sent a register and complete it, no
                        loopback publish has been sent, and no notify
                        too.<br>
                        <br>
                      </div>
                      Regards.<br>
                      <div><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2015-08-26 9:16 GMT+02:00
                        Daniel-Constantin Mierla <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:miconda@gmail.com"
                            target="_blank">miconda@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
                            <br>
                            watch the sip traffic and see if there are
                            retransmissions not replies as well as look
                            at expires header value for subscribe/public
                            requests. The reason timeout is somehow
                            related to the above.<br>
                            <br>
                            Again, be sure you look at the traffic on
                            all network interfaces.<br>
                            <br>
                            Is SIP sent over UDP or TCP/TLS?<br>
                            <br>
                            Cheers,<br>
                            Daniel
                            <div>
                              <div><br>
                                <br>
                                <div>On 25/08/15 16:07, Loic Chabert
                                  wrote:<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">
                                    <div>
                                      <div>
                                        <div>
                                          <div>
                                            <div>
                                              <div>Thanks Daniel,<br>
                                                <br>
                                              </div>
                                              Yes a subscribe request as
                                              been sent by my hardphone,
                                              authentication works, but
                                              juste after 200OK, a
                                              NOTIFY message as been
                                              sent with this header:
                                              Subscription-State:
                                              terminated;reason=timeout<br>
                                              <br>
                                            </div>
                                            But, on my SQL table
                                            "active_watcher", i can see
                                            my user (103) subscribed to
                                            102 dialog events.<br>
                                            <br>
                                          </div>
                                          Concerning pua_usrloc, all
                                          requests PUBLISH from myself
                                          are allowed:<br>
                                          <br>
                                              if(is_method("PUBLISH")
                                          && from_uri==myself)<br>
                                                  return;<br>
                                          <br>
                                        </div>
                                        Do you want any copy of debug
                                        message at level 3 ? <br>
                                        <br>
                                      </div>
                                      Thanks.<br>
                                    </div>
                                    Regards.<br>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">2015-08-25
                                      12:20 GMT+02:00 Daniel-Constantin
                                      Mierla <span dir="ltr"><<a
                                          moz-do-not-send="true"
                                          href="mailto:miconda@gmail.com"
                                          target="_blank">miconda@gmail.com</a>></span>:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div bgcolor="#FFFFFF"
                                          text="#000000"> Hello,<br>
                                          <br>
                                          do you get subscribe requests
                                          from users? A NOTIFY is sent
                                          only when there is an active
                                          subscription.<br>
                                          <br>
                                          Also, be sure you allow
                                          traffic on loopback without
                                          authentication -- pua_usrloc
                                          may send a publish to same sip
                                          server instance. Running with
                                          debug=3 and looking at syslog
                                          should reveal more about what
                                          is happening around.<br>
                                          <br>
                                          Cheers,<br>
                                          Daniel
                                          <div>
                                            <div><br>
                                              <br>
                                              <div>On 25/08/15 11:40,
                                                Loic Chabert wrote:<br>
                                              </div>
                                            </div>
                                          </div>
                                          <blockquote type="cite">
                                            <div>
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div>
                                                      <div>
                                                        <div>
                                                          <div>
                                                          <div>
                                                          <div>Hello
                                                          everyone,<br>
                                                          <br>
                                                          </div>
                                                          I'm trying to
                                                          reproduce
                                                          BLF's asterisk
                                                          fonctionnality
                                                          with kamailio.<br>
                                                          </div>
                                                          With asterisk,
                                                          on register,
                                                          NOTIFY message
                                                          has been sent
                                                          to all
                                                          suscribed
                                                          users. So LED
                                                          became green.<br>
                                                          </div>
                                                          How can i
                                                          reproduce this
                                                          function ? <br>
                                                          <br>
                                                        </div>
                                                        I have try to
                                                        execute a
                                                        "pua_set_publish()"
                                                        on register
                                                        route, but it's
                                                        not work. My led
                                                        stay "black",
                                                        and no notify
                                                        message has been
                                                        sent.<br>
                                                        <br>
                                                      </div>
                                                      I have loaded
                                                      presence,
                                                      presence_xml,
                                                      presence_mwi,
                                                      presence_dialoginfo,
                                                      pua,
                                                      pua_dialoginfo,
                                                      pua_usrloc. Any
                                                      other module
                                                      needed ?<br>
                                                      <br>
                                                    </div>
                                                    Thanks,<br>
                                                  </div>
                                                  Regards.<br>
                                                </div>
                                                <br>
                                                <fieldset></fieldset>
                                                <br>
                                              </div>
                                            </div>
                                            <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
                                            <span><font color="#888888">
                                              </font></span></blockquote>
                                          <span><font color="#888888"> <br>
                                              <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
                                            </font></span></div>
                                        <br>
_______________________________________________<br>
                                        SIP Express Router (SER) and
                                        Kamailio (OpenSER) - sr-users
                                        mailing list<br>
                                        <a moz-do-not-send="true"
                                          href="mailto:sr-users@lists.sip-router.org"
                                          target="_blank">sr-users@lists.sip-router.org</a><br>
                                        <a moz-do-not-send="true"
                                          href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                                          rel="noreferrer"
                                          target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                        <br>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                </blockquote>
                                <br>
                                <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>