<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1491896405511_34139"><span id="yui_3_16_0_ym19_1_1491896405511_34155">Hi Daniel,</span></div><div id="yui_3_16_0_ym19_1_1491896405511_34156" dir="ltr"><span id="yui_3_16_0_ym19_1_1491896405511_34155"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_34875"><span id="yui_3_16_0_ym19_1_1491896405511_34155">yes I want to register my SIP clients twice to have full media path through Asterisk.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_34640"><span id="yui_3_16_0_ym19_1_1491896405511_34155"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_35819"><span id="yui_3_16_0_ym19_1_1491896405511_34155">Now I register eg. clients 31 & 32 on Kamailio and when I try to call 31->32 then my call reaches Asterisk but it doesn't find the callee because it isn't registered in Asterisk.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_35821"><span id="yui_3_16_0_ym19_1_1491896405511_34155"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_35829"><span id="yui_3_16_0_ym19_1_1491896405511_34155">Am I right that Kamailio cuts a part of register message header (Authorisation - Digest name) which it receives from SIP-client and forward just such shortened message to Asterisk or there is an other problem?<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_35827"><span id="yui_3_16_0_ym19_1_1491896405511_34155"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_35825"><span id="yui_3_16_0_ym19_1_1491896405511_36375">Is there any better approach for above requirement (</span><span id="yui_3_16_0_ym19_1_1491896405511_34155"><span id="yui_3_16_0_ym19_1_1491896405511_36376">full media path through Asterisk for all calls and for all users registered by Kamailio)</span>?<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_35823"><span id="yui_3_16_0_ym19_1_1491896405511_34155"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_36370"><span id="yui_3_16_0_ym19_1_1491896405511_34155">Thank you</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_36040"><span id="yui_3_16_0_ym19_1_1491896405511_34155">Regards</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_36038"><span id="yui_3_16_0_ym19_1_1491896405511_34155">Marko<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_36258"><span id="yui_3_16_0_ym19_1_1491896405511_34155"><br></span></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1491896405511_34137" style="display: block;"><div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1491896405511_34136"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1491896405511_34135"><div dir="ltr" id="yui_3_16_0_ym19_1_1491896405511_34134"><br><div id="yui_3_16_0_ym19_1_1491896405511_35104"><br></div><font id="yui_3_16_0_ym19_1_1491896405511_34133" face="Arial" size="2">----- Forwarded Message -----<br> <b><span style="font-weight:bold;">From:</span></b> Daniel-Constantin Mierla <miconda@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Marko Tirs <marko.tirs@yahoo.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 6, 2017 11:25 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [SR-Users] Kamailio 5.0 doesn't forward Authorization (Digest username) to Asterisk<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1491896405511_34267"><br><div id="yiv3078624585"><div id="yui_3_16_0_ym19_1_1491896405511_34266">
    <div id="yui_3_16_0_ym19_1_1491896405511_34364">Hello,</div>
    <div id="yui_3_16_0_ym19_1_1491896405511_36151">I am not sure I got the proper picture of what do you want to
      achieve. Do you want to authenticate the registration twice, once
      by kamailio and second by asterisk?</div>
    <div id="yui_3_16_0_ym19_1_1491896405511_34366">Cheers,<br clear="none">
      Daniel<br clear="none">
    </div>
    <br clear="none">
    <div class="yiv3078624585yqt9460355734" id="yiv3078624585yqt08423"><div class="yiv3078624585moz-cite-prefix" id="yui_3_16_0_ym19_1_1491896405511_36525">On 03.04.17 01:05, Marko Tirs wrote:<br clear="none">
    </div>
    <blockquote type="cite" id="yui_3_16_0_ym19_1_1491896405511_34265">
      <div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1491896405511_34264">
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_8465">Hello all,</div>
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_8511"><br clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_8464">I am
          trying to use Kamailio 5.0 with Asterisk (separate IP
          addresses, both port 5060),</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9788"> but
          Asterisk doesn't register the SIP clients which comes through
          Kamailio.</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_8463">If I
          register the same user directly to the Asterisk then it works!
          1st REGISTER</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9911"> is
          also without Authorization (Digest name) but in the 2nd
          REGISTER it exists</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9798"> and
          registration goes OK.<br clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9790"><br clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9787">How to
          use Kamailio with Asterisk in the way the SIP client is
          registered on both of them?</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9786">Thank
          you</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9590">Marko</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9591"><br clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9785"><br clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9561">SIP-CLIENT
          DIRECTLY TO ASTERISK:</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9560">-----------------------------------------------------------<br clear="none">
        </div>
        1    2017-04-01 15:20:48.331806    192.168.0.12    192.168.0.2  
         SIP    544    Request: REGISTER <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:192.168.0.2</a>  (1 binding) |
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9392" clear="none">
        2    2017-04-01 15:20:48.332998    192.168.0.2    192.168.0.12  
         SIP    626    Status: 401 Unauthorized | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9393" clear="none">
        3    2017-04-01 15:20:48.333814    192.168.0.12    192.168.0.2  
         SIP    700    Request: REGISTER <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:192.168.0.2</a>  (1 binding) |
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9394" clear="none">
        4    2017-04-01 15:20:48.335975    192.168.0.2    192.168.0.12  
         SIP    647    Status: 200 OK  (1 binding) | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9395" clear="none">
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9603"><br clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9539">Frame
          3: 700 bytes on wire (5600 bits), 700 bytes captured (5600
          bits) on interface 0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9631" clear="none">
          Ethernet II, Src: AsrockIn_0a:0b:46 (70:85:c2:0a:0b:46), Dst:
          Raspberr_a1:fd:f7 (b8:27:eb:a1:fd:f7)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9632" clear="none">
          Internet Protocol Version 4, Src: 192.168.0.12, Dst:
          192.168.0.2<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9633" clear="none">
          User Datagram Protocol, Src Port: 64369, Dst Port: 5060<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9634" clear="none">
          Session Initiation Protocol (REGISTER)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9635" clear="none">
              Request-Line: REGISTER <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" id="yui_3_16_0_ym19_1_1491896405511_34269" href="">sip:192.168.0.2</a> SIP/2.0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9636" clear="none">
              Message Header<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9637" clear="none">
                  Via: SIP/2.0/UDP
192.168.0.12:64369;rport;branch=z9hG4bKPj9f8759c0537b4834bb411358d0b0a2ff<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9638" clear="none">
                  Max-Forwards: 70<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9639" clear="none">
                  From: "33"
          <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href=""><sip:33@192.168.0.2></a>;tag=4c586be1fcf842359e7d429abcb0b213<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9640" clear="none">
                  To: "33" <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href=""><sip:33@192.168.0.2></a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9641" clear="none">
                  Contact:
<a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href=""><sip:74081936@192.168.0.12:64369></a>;+sip.instance="<urn:uuid:b408367e-d06b-4780-a9a0-291eb99ec83c>"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9642" clear="none">
                  Call-ID: d3c240808c934b77a9bbcb8bd4c1bd8c<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9643" clear="none">
                  CSeq: 2 REGISTER<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9644" clear="none">
                  Expires: 600<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9645" clear="none">
                  Supported: gruu<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9646" clear="none">
                  User-Agent: Blink 3.0.0 (Windows)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9647" clear="none">
                  Authorization: Digest username="33", realm="asterisk",
          nonce="76ca37d8", uri=<a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href="">"sip:192.168.0.2"</a>,
          response="19fc1a634abc72c41dcb516470c34fc2", algorithm=MD5<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9648" clear="none">
                      Authentication Scheme: Digest<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9649" clear="none">
                      Username: "33"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9650" clear="none">
                      Realm: "asterisk"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9651" clear="none">
                      Nonce Value: "76ca37d8"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9652" clear="none">
                      Authentication URI: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href="">"sip:192.168.0.2"</a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9653" clear="none">
                      Digest Authentication Response:
          "19fc1a634abc72c41dcb516470c34fc2"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9654" clear="none">
                      Algorithm: MD5<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9655" clear="none">
                  Content-Length:  0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9656" clear="none">
          <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9657" clear="none">
        </div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9658"><br clear="none">
        </div>
        <div dir="ltr">SIP-CLIENT TO KAMAILIO WITH FORWARD TO ASTERISK:</div>
        <div dir="ltr" id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9540">----------------------------------------------------------------------------------------------<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9541" clear="none">
        </div>
        11    2017-04-01 15:21:06.806347    192.168.0.13  
         192.168.0.2    SIP    459    Request: REGISTER
        <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:192.168.0.2:5060</a>  (1 binding) | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9397" clear="none">
        12    2017-04-01 15:21:06.807514    192.168.0.2  
         192.168.0.13    SIP    608    Status: 401 Unauthorized | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9398" clear="none">
        13    2017-04-01 15:21:06.814819    192.168.0.13  
         192.168.0.2    SIP    456    Request: REGISTER
        <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:192.168.0.2:5060</a>  (remove 1 binding) | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9399" clear="none">
        14    2017-04-01 15:21:06.815712    192.168.0.2  
         192.168.0.13    SIP    608    Status: 401 Unauthorized | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9400" clear="none">
        15    2017-04-01 15:21:06.821125    192.168.0.13  
         192.168.0.2    SIP    459    Request: REGISTER
        <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:192.168.0.2:5060</a>  (1 binding) | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9401" clear="none">
        16    2017-04-01 15:21:06.821910    192.168.0.2  
         192.168.0.13    SIP    608    Status: 401 Unauthorized | <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9402" clear="none">
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9403" clear="none">
        Frame 15: 459 bytes on wire (3672 bits), 459 bytes captured
        (3672 bits) on interface 0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9432" clear="none">
        Ethernet II, Src: Micro-St_de:b2:3a (00:24:21:de:b2:3a), Dst:
        Raspberr_a1:fd:f7 (b8:27:eb:a1:fd:f7)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9433" clear="none">
        Internet Protocol Version 4, Src: 192.168.0.13, Dst: 192.168.0.2<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9434" clear="none">
        User Datagram Protocol, Src Port: 5060, Dst Port: 5060<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9435" clear="none">
        Session Initiation Protocol (REGISTER)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9436" clear="none">
            Request-Line: REGISTER <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:192.168.0.2:5060</a> SIP/2.0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9437" clear="none">
            Message Header<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9438" clear="none">
                Via: SIP/2.0/UDP
        192.168.0.13;branch=z9hG4bKd101.0ad599b6000000000000000000000000.0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9439" clear="none">
                To: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href=""><sip:32@192.168.0.2></a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9440" clear="none">
                    SIP to address: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:32@192.168.0.2</a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9441" clear="none">
                From:
        <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href=""><sip:32@192.168.0.2></a>;tag=533cb9e91f4b999cf76861cbb9ed54ed-85c4<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9442" clear="none">
                    SIP from address: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:32@192.168.0.2</a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9443" clear="none">
                    SIP from tag: 533cb9e91f4b999cf76861cbb9ed54ed-85c4<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9444" clear="none">
                CSeq: 10 REGISTER<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9445" clear="none">
                Call-ID: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-abbreviated" ymailto="mailto:41df282f10fdc7b6-2773@127.0.0.1" target="_blank" href="mailto:41df282f10fdc7b6-2773@127.0.0.1">41df282f10fdc7b6-2773@127.0.0.1</a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9446" clear="none">
                Max-Forwards: 70<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9447" clear="none">
                Content-Length: 0<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9448" clear="none">
                User-Agent: kamailio (5.0.0 (x86_64/linux))<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9449" clear="none">
                Contact: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-rfc2396E" href=""><sip:32@192.168.0.13:5060></a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9450" clear="none">
                    Contact URI: <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" href="">sip:32@192.168.0.13:5060</a><br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9451" clear="none">
                Expires: 3600<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9452" clear="none">
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9453" clear="none">
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9454" clear="none">
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9455" clear="none">
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9764">kamailio.cfg:</div>
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9776">--------------------<br clear="none">
        </div>
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9758"><br clear="none">
        </div>
        #!define WITH_DEBUG<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9459" clear="none">
        #!define WITH_MYSQL<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9460" clear="none">
        #!define WITH_AUTH<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9461" clear="none">
        #!define WITH_USRLOCDB<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9462" clear="none">
        #!define WITH_ASTERISK<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9463" clear="none">
        ...<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9465" clear="none">
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9466" clear="none">
        #!ifdef WITH_ASTERISK<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9467" clear="none">
        asterisk.bindip = "192.168.0.2" desc "Asterisk IP Address"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9468" clear="none">
        asterisk.bindport = "5060" desc "Asterisk Port"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9469" clear="none">
        kamailio.bindip = "192.168.0.13" desc "Kamailio IP Address"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9470" clear="none">
        kamailio.bindport = "5060" desc "Kamailio Port"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9471" clear="none">
        #!endif<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9472" clear="none">
        ...<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9474" clear="none">
        <br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9475" clear="none">
        # Forward REGISTER to Asterisk<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9476" clear="none">
        route[REGFWD] {<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9477" clear="none">
            if(!is_method("REGISTER"))<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9478" clear="none">
            {<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9479" clear="none">
                return;<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9480" clear="none">
            }<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9481" clear="none">
            $var(rip) = $sel(cfg_get.asterisk.bindip);<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9482" clear="none">
            $uac_req(method)="REGISTER";<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9483" clear="none">
            $uac_req(ruri)="sip:" + $var(rip) + ":" +
        $sel(cfg_get.asterisk.bindport);<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9484" clear="none">
            #$uac_req(ruri)="sip:" + $au + "@" + $var(rip) + ":" +
        $sel(cfg_get.asterisk.bindport);<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9485" clear="none">
            $uac_req(furi)="sip:" + $au + "@" + $var(rip);<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9486" clear="none">
            $uac_req(turi)="sip:" + $au + "@" + $var(rip);<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9487" clear="none">
            $uac_req(hdrs)="Contact: <sip:" + $au + "@"<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9488" clear="none">
                        + $sel(cfg_get.kamailio.bindip)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9489" clear="none">
                        + ":" + $sel(cfg_get.kamailio.bindport) +
        ">\r\n";<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9490" clear="none">
            if($sel(contact.expires) != $null)<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9491" clear="none">
                $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " +
        $sel(contact.expires) + "\r\n";<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9492" clear="none">
            else<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9493" clear="none">
                $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " +
        $hdr(Expires) + "\r\n";<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9494" clear="none">
            uac_req_send();<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9495" clear="none">
        }<br id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9496" clear="none">
        <div id="yiv3078624585yui_3_16_0_ym19_1_1491149150152_9827"><br clear="none">
        </div>
      </div>
      <br clear="none">
      <fieldset class="yiv3078624585mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-freetext" target="_blank" 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></div>
    <br clear="none">
    <pre class="yiv3078624585moz-signature">-- 
Daniel-Constantin Mierla
<a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-abbreviated" target="_blank" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-abbreviated" target="_blank" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-abbreviated" target="_blank" href="http://www.asipto.com/">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a rel="nofollow" shape="rect" class="yiv3078624585moz-txt-link-abbreviated" target="_blank" href="http://www.kamailioworld.com/">www.kamailioworld.com</a></pre>
  </div></div><br><br></div> </div> </div>  </div></div></body></html>