<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    as I said in a previous email, you have to describe what
    match_dialog() and fix_route_dialog() do in order to be able to help
    you. It is very unlikely someone here has any knowledge of other sip
    servers apart of Kamailio, as you write to kamailio dev list.<br>
    <br>
    If you don't know why are those function in your config and what
    they are supposed to do, then it is better to remove them anyhow.<br>
    <br>
    As another guess to try helping:<br>
    <br>
    - replace:<br>
    <br>
    if (match_dialog()) {<br>
    <br>
    - with:<br>
    <br>
     if(is_known_dlg()) {
    <meta charset="utf-8">
    <div class="moz-cite-prefix"><br>
      Then remove completely:<br>
      <br>
                             if ($DLG_status==NULL) {<br>
                                      xlog("Dialog NULL");<br>
                              }<br>
                              else {<br>
                                      fix_route_dialog();<br>
                              }<br>
      <br>
      Test and see if it works as you need.<br>
      <br>
      This is the last attempt to give you blind guidelines. If you want
      further assistance, you have to describe what you need to get as
      SIP routing. Nobody will spend time to read on internet for you
      and more important, if you don't know what is supposed to do in
      terms of SIP routing, then you are doing it all wrong.<br>
      <br>
      I am saying it because in case you do a telephony service without
      properly understanding what you do with kamailio (or other voip
      system such as asterisk, freeswitch, ...), it will not last long
      until someone breaks your voip system, which can cost you a lot in
      damages.<br>
      <br>
      Daniel<br>
      <br>
      On 22/12/15 12:52, yasir ay wrote:<br>
    </div>
    <blockquote
cite="mid:CACY_mm1A2jk0i5J8riQN3R7zWew2K9DreFXhgnLeVBDbqM7bNA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:comic sans
          ms,sans-serif">
          <div class="gmail_default" style="font-family:comic sans
            ms,sans-serif">Hai Daniel,<br>
            <br>
          </div>
          <div class="gmail_default" style="font-family:comic sans
            ms,sans-serif">Am using Kamailio 4.4.0<br>
            <br>
            version: kamailio 4.4.0-dev8 (x86_64/linux) a2e3c0<br>
            flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
            USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
            SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
            TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
            FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
            USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
            ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
            MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT
            PKG_SIZE 8MB<br>
            poll method support: poll, epoll_lt, epoll_et, sigio_rt,
            select.<br>
            id: a2e3c0<br>
            compiled on 05:33:57 Dec 18 2015 with gcc 4.8.5<br>
            <br>
          </div>
          <div class="gmail_default" style="font-family:comic sans
            ms,sans-serif">Now I have a routing scripting written in
            opensips going to change into kamailio.cfg.<br>
          </div>
          <div class="gmail_default" style="font-family:comic sans
            ms,sans-serif">But am facing some issues about functions and
            modules paramaeters,<br>
          </div>
          <div class="gmail_default" style="font-family:comic sans
            ms,sans-serif">So please help me a good documents to write
            kamailio script,<br>
          </div>
          <div class="gmail_default" style="font-family:comic sans
            ms,sans-serif">i dnt which function to
            mathc_dialog,fix_route_dialog..etc....<br>
            <br>
            <br>
            <br>
               if (has_totag()) {<br>
                             if (match_dialog()) {<br>
                                    if ($DLG_status==NULL) {<br>
                                            xlog("Dialog NULL");<br>
                                    }<br>
                                    else {<br>
                                            fix_route_dialog();<br>
                                    }<br>
                                    if (is_method("BYE")) {<br>
                                            remove_hf("User-Agent:");<br>
                                            t_relay();<br>
                                    }<br>
                                    else if (is_method("INVITE")) {<br>
                                            record_route();<br>
                                            route(RELAY);<br>
                                    }<br>
                                    else {<br>
                                            route(RELAY);<br>
                                    }<br>
                            }<br>
                            else {<br>
                                    if ( is_method("ACK")) {<br>
                                            remove_hf("Route:");<br>
                                            if ( t_check_trans() ) {<br>
                                                    t_relay();<br>
                                                    exit;<br>
                                            }<br>
                                            else {<br>
                                                    exit;<br>
                                            }<br>
                                    }<br>
                                    sl_send_reply("404","Not here");<br>
                            }<br>
                            exit;<br>
                    }<br>
          </div>
          The above scriptis from opensip.cfg please show by changing
          above part into kamailio.cfg<br>
          <br>
        </div>
        <div class="gmail_default" style="font-family:comic sans
          ms,sans-serif">Thanks& Regards<br>
        </div>
        <div class="gmail_default" style="font-family:comic sans
          ms,sans-serif">Yasir<br>
          <br>
        </div>
        <div>
          <div class="gmail_signature">
            <div dir="ltr"><a moz-do-not-send="true"
                href="http://about.me/mhdyas" target="_blank">http://about.me/mhdyas</a><br>
            </div>
          </div>
        </div>
      </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>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>