<div dir="ltr"><div><div><div><div>Hi Daniel,<br><br>But when Kamailio receives a CANCEL prints the following error messages:<br><br>2016-06-15 14:39:10.354  ERROR: tm [t_msgbuilder.c:287]: build_local_reparse(): ERROR: build_local_reparse: INVITE is missing<br>2016-06-15 14:39:10.354  ERROR: tm [t_msgbuilder.c:494]: build_local_reparse(): ERROR: build_local_reparse: cannot build CANCEL request<br>2016-06-15 14:39:10.354  ERROR: tm [t_cancel.c:310]: cancel_branch(): ERROR: attempt to build a CANCEL failed<br>2016-06-15 14:39:10.354  ERROR: tm [t_fwd.c:1389]: e2e_cancel(): ERROR: cancel error<br><br></div>I'm handling the CANCEL in the script by the following way:<br><br><br> if (is_method("CANCEL")) {<br>                if (t_check_trans()) {<br>                        route(RELAY);<br>                } else {<br>                        sl_send_reply("481", "Call leg/transaction does not exist");<br>                }<br>                exit();<br>...<br>...<br>...<br><br></div>Thank you for your support.<br><br></div>Regards<br></div>José<br><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-15 12:15 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a 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">
    <p>Hello,<br>
    </p><span class="">
    <br>
    <div>On 14/06/16 16:33, José Seabra wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi Olle and Daniel,<br>
                </div>
                Thank you for your replies, After receive your msg I
                looked again to my script and i found the problem.<br>
                <br>
              </div>
              I didn't configure the correct failure_route block and the
              failure route configured didn't print any msg on the logs,
              so I <span lang="en"><span>thought</span></span> that it wasn't entering
              on failure route.<br>
              <br>
            </div>
            Sorry for my mistake.<br>
            <br>
          </div>
          <div>Anyway, How should i handle the CANCEL sip msg to an
            INVITE that is suspended? (still related with this
            implementation)<br>
          </div>
        </div>
      </div>
    </blockquote></span>
    Just handling it as done in the default configuration file is ok --
    the suspended transaction will be canceled.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div><br>
            <br>
          </div>
          Thank you for your support.<br>
          <br>
        </div>
        Regards</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-06-14 14:52 GMT+01:00 Olle E.
          Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div style="word-wrap:break-word"><br>
              <div><span>
                  <blockquote type="cite">
                    <div>On 14 Jun 2016, at 15:45, José Seabra <<a href="mailto:joseseabra4@gmail.com" target="_blank"></a><a href="mailto:joseseabra4@gmail.com" target="_blank">joseseabra4@gmail.com</a>>
                      wrote:</div>
                    <br>
                    <div>
                      <div dir="ltr">
                        <div>
                          <div>
                            <div>
                              <div>Hello,<br>
                                <br>
                              </div>
                              Regarding to this implementation, I'm
                              sending SIP Subscribe message from
                              uac_req_send function to CNAM server but
                              it is unavailable and Kamailio doesn't
                              receive any reply from CNAM server, What
                              I'm noticing is that kamailio is
                              retransmitting the SIP Subscribe msg until
                              get "408 request time out".<br>
                              <br>
                            </div>
                            <div>In order to implement a failure_route
                              to this SIP Subscribe msg sent from
                              uac_req_send I put kamailio send this SIP
                              msg first to itself then kamailio set the
                              failure_route and send SIP Subscribe msg
                              to CNAM server using t_relay from script
                              configuration file, but kamailio still not
                              entering on failure_route block.<br>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </span>I am doing the same with SIP REGISTER and get
                into the failure route with a lot of different issues.
                Haven’t specifically tried with a local TM timeout, a
                locally generated 408 though. <span><br>
                  <blockquote type="cite">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div>
                            <div><br>
                              How can I set  failure_route to this SIP
                              Subscribe msg sent from uac_req_send()</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </span>SHould work with a normal failure route trigger
                in the script. </div>
              <div><br>
              </div>
              <div>Sounds very strange ...</div>
              <div><br>
              </div>
              <div>/O<br>
                <blockquote type="cite">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div><br>
                        </div>
                        Regards<br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote"><span>2016-06-07
                          22:06 GMT+01:00 José Seabra <span dir="ltr"><<a href="mailto:joseseabra4@gmail.com" target="_blank"></a><a href="mailto:joseseabra4@gmail.com" target="_blank">joseseabra4@gmail.com</a>></span>:<br>
                        </span>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
                            <div dir="ltr">Hello, 
                              <div><br>
                              </div>
                              <div>Thank you for the feedback.</div>
                              <div><br>
                              </div>
                              <div>BR</div>
                            </div>
                          </span>
                          <div class="gmail_extra">
                            <div>
                              <div><br>
                                <div class="gmail_quote"><span>2016-06-07
                                    8:38 GMT+01:00 Pavel Eremin <span dir="ltr"><<a href="mailto:eremina.net@gmail.com" target="_blank"></a><a href="mailto:eremina.net@gmail.com" target="_blank">eremina.net@gmail.com</a>></span>:<br>
                                  </span>
                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
                                      <div dir="ltr">
                                        <div>Hi,</div>
                                        <div><br>
                                        </div>
                                        We using PERL moodule and PERL
                                        script to do this.
                                        <div>Don't sure but, Kamailio
                                          will stop anyway when it sends
                                          www query and wating answer.</div>
                                        <div><br>
                                        </div>
                                      </div>
                                    </span>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote"><span>
                                          <div>
                                            <div>2016-06-06 19:56
                                              GMT+05:00 José Seabra <span dir="ltr"><<a href="mailto:joseseabra4@gmail.com" target="_blank"></a><a href="mailto:joseseabra4@gmail.com" target="_blank">joseseabra4@gmail.com</a>></span>:<br>
                                            </div>
                                          </div>
                                        </span>
                                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                          <div>
                                            <div>
                                              <div dir="ltr"><span>
                                                  <div>Hello there,<br>
                                                  </div>
                                                  I need to use kamailio
                                                  to consult an CNAM
                                                  server in order to get
                                                  the caller id name and
                                                  number to the call,
                                                  the diagram bellow
                                                  represents what i need
                                                  implement:<br>
                                                  <br>
                                                </span><span><kamailio_CNAM.png></span>
                                                <div>
                                                  <div><br>
                                                    ​<br clear="all">
                                                    <div>
                                                      <div>Can I 
                                                        implement this
                                                        behavior through
                                                        the following
                                                        kamailio
                                                        modules:<br>
                                                      </div>
                                                      <ol>
                                                        <li>tm and tmx
                                                          module (call
                                                          the function
                                                          t_suspend and
                                                          t_continue in
                                                          order to stop
                                                          INVITE
                                                          transaction
                                                          and resume
                                                          it).</li>
                                                        <li>UAC module
                                                          (generate the
                                                          SUBSCRIBE sip
                                                          message)</li>
                                                        <li>Some
                                                          kamailio
                                                          scripting
                                                          logic to
                                                          manage this
                                                          behavior.</li>
                                                      </ol>
                                                      <div>what are your
                                                        advices to
                                                        implement this
                                                        scenario?<br>
                                                        <br>
                                                      </div>
                                                      <div>Thank you for
                                                        your help<br>
                                                      </div>
                                                      <div><br>
                                                        Regards<span><font color="#888888"><br>
                                                          <br>
                                                          </font></span></div>
                                                      <span><font color="#888888">
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>-- <br>
                                                          <div data-smartmail="gmail_signature">Cumprimentos
                                                          <div>José
                                                          Seabra</div>
                                                          </div>
                                                          </div>
                                                        </font></span></div>
                                                  </div>
                                                </div>
                                              </div>
                                              <br>
                                            </div>
                                          </div>
                                          <div>
                                            <div>_______________________________________________<br>
                                              SIP Express Router (SER)
                                              and Kamailio (OpenSER) -
                                              sr-users mailing list<br>
                                              <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                              <a 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>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                    <div>
                                      <div>
                                        <br>
_______________________________________________<br>
                                        SIP Express Router (SER) and
                                        Kamailio (OpenSER) - sr-users
                                        mailing list<br>
                                        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                        <a 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>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                                <br clear="all">
                                <span><font color="#888888">
                                    <div><br>
                                    </div>
                                  </font></span></div>
                            </div>
                            <span><font color="#888888"><span><font color="#888888">-- <br>
                                    <div data-smartmail="gmail_signature">Cumprimentos
                                      <div>José Seabra</div>
                                    </div>
                                  </font></span></font></span></div>
                          <span><font color="#888888">
                            </font></span></blockquote>
                      </div>
                      <span><font color="#888888"><br>
                          <br clear="all">
                          <br>
                          -- <br>
                          <div data-smartmail="gmail_signature">Cumprimentos
                            <div>José Seabra</div>
                          </div>
                        </font></span></div>
                    <div>
                      <div>
                        _______________________________________________<br>
                        SIP Express Router (SER) and Kamailio (OpenSER)
                        - sr-users mailing list<br>
                        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                        <a 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><br>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
            <a 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>
        <br clear="all">
        <br>
        -- <br>
        <div data-smartmail="gmail_signature">Cumprimentos
          <div>José Seabra</div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a 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>
</pre>
    </blockquote>
    <br>
    </div></div><pre cols="72"><span class="HOEnZb"><font color="#888888">-- 
Daniel-Constantin Mierla
</font></span><span class=""><a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></span></pre>
  </div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a 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><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div>