Dear All,<br><br>Platform:<br>- Opensip 1.4.5<br>- RTPPROXY: 1.2.0<br>- MySQL: 5.0<br>- Asterisk 1.4.24<br><br>Asterisk acts as a VoiceMail system when Users on Opensips Do Not answer or Busy, so call will route to Asterisk to leave Voicemail.<br>
Voicemail system works properly.<br><br>The problem is: &quot;When call route out of Opensips Server to Asterisk, Request URI use IP of Opensips to request Asterisk&quot;. <br><br>So, Asterisk will return to wrong IP of UA Client, and of course, no voice from Asterisk to UA Client.<br>
<br>Expected Results:1. &quot;I want to use 1000@IP_OF_UACLient to request Asterisk for leave voicemail?&quot; or &quot;If it uses 1000@IP_OF_OPENSIPS to request Asterisk for Voicemail, UA Client should hear Voice&quot;.<br>
<br>Bellow is my Configuration Files and Log File of OpenSIPs.<br><br>Thanks and Regards,<br>-LN<br><br>===========CONFIGURATION============<br>#04072009<br>#tm timeout for voicemail params<br>modparam(&quot;tm&quot;, &quot;fr_timer&quot;, 3)<br>
modparam(&quot;tm&quot;, &quot;fr_inv_timer&quot;, 20)<br><br>####### Routing Logic ########<br>#Follow: <a href="http://www.mail-archive.com/users@openser.org/msg01991.html">http://www.mail-archive.com/users@openser.org/msg01991.html</a> &amp;&amp; ser.cfg<br>
route {<br>    log(1, &quot;----------------------------------------------------------------------------------&quot;);<br>    log(1, &quot;HTK: ENTER MAIN LOOP\n&quot;);<br>    log(1, &quot;----------------------------------------------------------------------------------&quot;);<br>
    #---------<br>    #Sanity Check<br>    #-------------<br>    if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>        sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>        exit;<br>    };<br>    if ( msg:len &gt;= max_len ) {<br>
        sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);<br>        exit;<br>    }<br>    <br>    #--------------------------------------<br>    #Record-Route all messages <br>    #-- to make sure subsequent messages will go through our proxy<br>
    #--------------------------------------<br>    if (method!=&quot;REGISTER&quot;) {<br>        record_route();<br>    }<br>    #-------------------------------<br>    # Loose-Route<br>    #-------------------------------<br>
    if (loose_route()) {<br>        append_hf(&quot;P-hint: HTK: rr-enforced\r\n&quot;);<br>        route(1);<br>        exit;<br>    }<br>    #--------------------------------<br>    # uri != myself<br>    #--------------------------------------<br>
    if (uri!=myself) {<br>        append_hf(&quot;P-hint: HTK: Outbound\r\n&quot;);<br>        route(1); #NATHELPER<br>        exit;<br>    }<br>    #----------------------------------<br>    # uri==myself<br>    #--------------------------------<br>
    if (uri==myself) {<br>        if (method==&quot;REGISTER&quot;) {<br>            if (nat_uac_test(&quot;19&quot;)) {<br>                setbflag(6);<br>                force_rport();<br>                fix_nated_register();<br>
            <br>            }<br>            sl_send_reply(&quot;100&quot;, &quot;HTK: Trying\r\n&quot;);<br>            #AUTHENTICATE<br>            if(!www_authorize(&quot;OPENSIPSIP&quot;, &quot;subscriber&quot;)) {<br>
                www_challenge(&quot;OPENSIPSIP&quot;, &quot;0&quot;);<br>                exit;<br>            }<br>            consume_credentials();<br>            <br>            save(&quot;location&quot;);<br>            exit;<br>
        <br>        }<br>        lookup(&quot;aliases&quot;);<br>        #if (is_user_in(&quot;Request-URI&quot;, &quot;voicemail&quot;)) {<br>        #    log(1, &quot;HTK: callee user is in Voicemail Group ...\r\n&quot;);<br>
        #    setbflag(4);<br>        #}<br><br>        if (!lookup(&quot;location&quot;)) { <br>        #    if(isflagset(2)) {<br>        #        # route to Asterisk Media Server<br>        #        rewritehostport(&quot;ASTERISKIP:5060&quot;);<br>
        #        route(1);<br>        #    } <br>            route(2);<br>            exit;<br>        }<br>        <br>    } #End uri==myself<br>    <br>    #<br>    #<br>    #<br>    if (method==&quot;INVITE&quot;) {<br>
        t_on_failure(&quot;1&quot;);<br>    } else if (method==&quot;BYE&quot; || method==&quot;CANCEL&quot;) {<br>        unforce_rtp_proxy();<br>    }<br>    <br>    #---------------------------------------------------------------------<br>
    # LOOSE_ROUTE - INVITE - FORCE_RTP_PROXY<br>    #-----------------------------------------------------------------------<br>    if (loose_route()) {<br>        if (method==&quot;INVITE&quot; || method==&quot;ACK&quot;) {<br>
            append_hf(&quot;P-hint: HTK - LOOSE ROUTE - Relay re-INVITE + FORCE_RTP_PROXY\r\n&quot;);<br>            force_rtp_proxy();<br>        }<br>        # t-relay()<br>        t_relay();<br>        exit;<br>    }<br>
    <br>    #-----------------------------------------------------------------------<br>    #NAT - fix_nated_contact()<br>    #------------------------------------------------------------------------<br>    if (nat_uac_test(&quot;19&quot;) &amp;&amp; !search(&quot;^Record-Route:&quot;)) {<br>
        append_hf(&quot;P-hint: HTK: Fix nated contact\r\n&quot;);<br>        force_rport();<br>        fix_nated_contact();<br>    }<br>    <br>    if (method==&quot;INVITE&quot;) {<br>        append_hf(&quot;P-hint: HTK: INVITE go to on_reply_route[1]\r\n&quot;);<br>
        t_on_reply(&quot;1&quot;);<br>    }<br>    <br>    if (method==&quot;INVITE&quot; || method==&quot;ACK&quot;) {<br>        append_hf(&quot;P-hint: INVITE||ACK + FORCE_RTP_PROXY\r\n&quot;);<br>        force_rtp_proxy();<br>
    }<br>    <br>    if (!t_relay()) {<br>        append_hf(&quot;P-hint: INVITE||ACK - UNFORCE_RTP_PROXY\r\n&quot;);<br>        if (method==&quot;INVITE&quot; || method==&quot;ACK&quot;) {<br>            unforce_rtp_proxy();<br>
        }<br>        sl_reply_error();<br>    }<br>    <br>    #04072009<br>    #if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag() &amp;&amp; uri=~&quot;sip:\*9&quot;) {<br>    #    append_hf(&quot;P-hint: HTK: Dial to listening to VM ... \r\n&quot;);    <br>
    #    route(2);<br>    #    exit;<br>    #}<br>    #End 04072009<br>    <br><br>    append_hf(&quot;P-hint: HTK: usrloc applied\r\n&quot;);<br>    <br><br>}<br><br>route[1] {<br>    append_hf(&quot;P-hint: Route[1] Processing\r\n&quot;);<br>
    <br>    #04082009<br>    if (method==&quot;INVITE&quot;) {<br>        t_on_failure(&quot;1&quot;);<br>    }<br>    #04082009<br>    <br>    if (!t_relay()) {<br>        sl_reply_error();<br>    }<br>}<br><br>onreply_route[1] {<br>
    append_hf(&quot;P-hint: HTK: On_reply_route[1] processing\r\n&quot;);<br>    if (status=~&quot;(180)|(183)|2[0-9][0-9]&quot;) {<br>        if (nat_uac_test(&quot;1&quot;)) {<br>            fix_nated_contact();<br>        }<br>
        force_rtp_proxy();<br>    }<br>}<br><br>#-------------------------------<br># Route 2 use to handle Unavailable user<br>#------------------------------<br>route[2] {<br>    if (!isbflagset(4) &amp;&amp; method!=&quot;OPTIONS&quot; &amp;&amp; method!=&quot;ACK&quot; &amp;&amp; method!=&quot;BYE&quot;) {<br>
        sl_send_reply(&quot;404&quot;, &quot;HTK - no Voicemail Turn on ... \r\n&quot;);<br>        exit;<br>    }<br>    #forward to VoiceMail<br>    rewritehostport(&quot;ASTERISKIP:5060&quot;);<br>    route(1);<br>}<br>
failure_route[1] {<br>    unforce_rtp_proxy();<br>    #No Answer<br>    if (t_check_status(&quot;408&quot;)) { <br>        append_hf(&quot;P-hint: HTK - 408 and route to VM ... \r\n&quot;);<br>        revert_uri();<br>        $ru = $avp(i:10);<br>
        rewritehostport(&quot;ASTERISKIP:5060&quot;);<br>        xlog(&quot;HTK: Ruri=$ru\n&quot;);<br>        append_branch();<br>        log(1, &quot;HTK: CALL TO VOICEMAIL ...&quot;);<br>        t_relay();<br>        #route(1);<br>
        exit;    <br>    #Busy    <br>    } else if (t_check_status(&quot;486&quot;)) { <br>        append_hf(&quot;P-hint: HTK - 486 and route to VM ... \r\n&quot;);<br>        revert_uri();<br>        $ru = $avp(i:10);<br>
        rewritehostport(&quot;ASTERISKIP:5060&quot;);<br>        append_branch();<br>        t_relay();<br>        #route(1);<br>        exit;<br>    }<br>}<br><br>===============LOGFILE OF OPENSIPS===============<br>interface: eth0 (<a href="http://174.132.45.16/255.255.255.248">174.132.45.16/255.255.255.248</a>)<br>
filter: (ip) and ( port 5060 )<br><br>U <a href="http://118.69.139.66:21538">118.69.139.66:21538</a> -&gt; OPENSIPS_IP:5060<br>INVITE sip:3000@OPENSIPS_IP SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport.<br>
Max-Forwards: 70.<br>Contact: &lt;<a href="http://sip:6000@118.69.139.66:21538">sip:6000@118.69.139.66:21538</a>&gt;.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>
Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>Content-Type: application/sdp.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>
Content-Length: 425.<br>.<br>v=0.<br>o=- 6 2 IN IP4 192.168.1.150.<br>s=CounterPath X-Lite 3.0.<br>c=IN IP4 192.168.1.150.<br>t=0 0.<br>m=audio 48192 RTP/AVP 107 119 100 106 0 105 98 8 3 101.<br>a=alt:1 1 : gbVHmzwd FPodLTLD 192.168.1.150 48192.<br>
a=fmtp:101 0-15.<br>a=rtpmap:107 BV32/16000.<br>a=rtpmap:119 BV32-FEC/16000.<br>a=rtpmap:100 SPEEX/16000.<br>a=rtpmap:106 SPEEX-FEC/16000.<br>a=rtpmap:105 SPEEX-FEC/8000.<br>a=rtpmap:98 iLBC/8000.<br>a=rtpmap:101 telephone-event/8000.<br>
a=sendrecv.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 100 Giving a try.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538;received=118.69.139.66.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>Server: OpenSIPS (1.4.5-notls (i386/linux)).<br>
Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21198">118.69.139.66:21198</a><br>INVITE sip:3000@118.69.139.66:21198;rinstance=cde698603c5f417a SIP/2.0.<br>Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>
Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>Max-Forwards: 69.<br>Contact: &lt;<a href="http://sip:6000@118.69.139.66:21538">sip:6000@118.69.139.66:21538</a>&gt;.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>
Content-Type: application/sdp.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Content-Length: 443.<br>P-hint: HTK: Fix nated contact.<br>P-hint: HTK: INVITE go to on_reply_route[1].<br>P-hint: INVITE||ACK + FORCE_RTP_PROXY.<br>
.<br>v=0.<br>o=- 6 2 IN IP4 192.168.1.150.<br>s=CounterPath X-Lite 3.0.<br>c=IN IP4 174.132.45.26.<br>t=0 0.<br>m=audio 41790 RTP/AVP 107 119 100 106 0 105 98 8 3 101.<br>a=alt:1 1 : gbVHmzwd FPodLTLD 192.168.1.150 48192.<br>
a=fmtp:101 0-15.<br>a=rtpmap:107 BV32/16000.<br>a=rtpmap:119 BV32-FEC/16000.<br>a=rtpmap:100 SPEEX/16000.<br>a=rtpmap:106 SPEEX-FEC/16000.<br>a=rtpmap:105 SPEEX-FEC/8000.<br>a=rtpmap:98 iLBC/8000.<br>a=rtpmap:101 telephone-event/8000.<br>
a=sendrecv.<br>a=nortpproxy:yes.<br><br><br>U <a href="http://118.69.139.66:21198">118.69.139.66:21198</a> -&gt; OPENSIPS_IP:5060<br>SIP/2.0 100 Trying.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>Content-Length: 0.<br>.<br>
<br><br>U <a href="http://118.69.139.66:21198">118.69.139.66:21198</a> -&gt; OPENSIPS_IP:5060<br>SIP/2.0 180 Ringing.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr;ftag=4d457d11&gt;.<br>Contact: &lt;sip:3000@118.69.139.66:21198;rinstance=cde698603c5f417a&gt;.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=4b7c2d11.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>
Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>
SIP/2.0 180 Ringing.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>Record-Route: &lt;sip:OPENSIPS_IP;lr;ftag=4d457d11&gt;.<br>Contact: &lt;sip:3000@118.69.139.66:21198;rinstance=cde698603c5f417a&gt;.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=4b7c2d11.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>
Content-Length: 0.<br>P-hint: HTK: On_reply_route[1] processing.<br>.<br><br><br>U <a href="http://118.69.139.66:21538">118.69.139.66:21538</a> -&gt; OPENSIPS_IP:5060<br>REGISTER sip:OPENSIPS_IP SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-481184409d2d215f-1---d8754z-;rport.<br>
Max-Forwards: 70.<br>Contact: &lt;sip:6000@118.69.139.66:21538;rinstance=78ac80247e1fbe33&gt;.<br>To: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=e145987e.<br>Call-ID: ODZhMjQ5OWNmYmNjYWU1OWM1NjE1YTcyODNkYTExMjU..<br>
CSeq: 5 REGISTER.<br>Expires: 3600.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Authorization: Digest username=&quot;6000&quot;,realm=&quot;OPENSIPS_IP&quot;,nonce=&quot;49dc7b82000000003b87402cb8e806fb6d9e1c59ea461b93&quot;,uri=&quot;sip:OPENSIPS_IP&quot;,response=&quot;49d182024912dbdea882ea5f444baed5&quot;,algorithm=MD5.<br>
Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 100 HTK: Trying.<br>.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-481184409d2d215f-1---d8754z-;rport=21538;received=118.69.139.66.<br>
To: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=e145987e.<br>Call-ID: ODZhMjQ5OWNmYmNjYWU1OWM1NjE1YTcyODNkYTExMjU..<br>CSeq: 5 REGISTER.<br>Server: OpenSIPS (1.4.5-notls (i386/linux)).<br>
Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 401 Unauthorized.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-481184409d2d215f-1---d8754z-;rport=21538;received=118.69.139.66.<br>
To: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=8ed58e8cfe509175e1a2ba62a5c99654.da31.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=e145987e.<br>Call-ID: ODZhMjQ5OWNmYmNjYWU1OWM1NjE1YTcyODNkYTExMjU..<br>
CSeq: 5 REGISTER.<br>WWW-Authenticate: Digest realm=&quot;OPENSIPS_IP&quot;, nonce=&quot;49dc882c0000000003ba0866bfdec34bcbac7b42c7cd91a3&quot;, stale=true.<br>Server: OpenSIPS (1.4.5-notls (i386/linux)).<br>Content-Length: 0.<br>
.<br><br><br>U <a href="http://118.69.139.66:21538">118.69.139.66:21538</a> -&gt; OPENSIPS_IP:5060<br>REGISTER sip:OPENSIPS_IP SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-9c6efc773332742e-1---d8754z-;rport.<br>
Max-Forwards: 70.<br>Contact: &lt;sip:6000@118.69.139.66:21538;rinstance=78ac80247e1fbe33&gt;.<br>To: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=e145987e.<br>Call-ID: ODZhMjQ5OWNmYmNjYWU1OWM1NjE1YTcyODNkYTExMjU..<br>
CSeq: 6 REGISTER.<br>Expires: 3600.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Authorization: Digest username=&quot;6000&quot;,realm=&quot;OPENSIPS_IP&quot;,nonce=&quot;49dc882c0000000003ba0866bfdec34bcbac7b42c7cd91a3&quot;,uri=&quot;sip:OPENSIPS_IP&quot;,response=&quot;3f19e5c021794fd9dcca8d4b7875f455&quot;,algorithm=MD5.<br>
Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 100 HTK: Trying.<br>.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-9c6efc773332742e-1---d8754z-;rport=21538;received=118.69.139.66.<br>
To: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=e145987e.<br>Call-ID: ODZhMjQ5OWNmYmNjYWU1OWM1NjE1YTcyODNkYTExMjU..<br>CSeq: 6 REGISTER.<br>Server: OpenSIPS (1.4.5-notls (i386/linux)).<br>
Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-9c6efc773332742e-1---d8754z-;rport=21538;received=118.69.139.66.<br>
To: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=8ed58e8cfe509175e1a2ba62a5c99654.df45.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=e145987e.<br>Call-ID: ODZhMjQ5OWNmYmNjYWU1OWM1NjE1YTcyODNkYTExMjU..<br>
CSeq: 6 REGISTER.<br>Contact: &lt;sip:6000@118.69.139.66:21538;rinstance=78ac80247e1fbe33&gt;;expires=3600;received=&quot;sip:<a href="http://118.69.139.66:21538">118.69.139.66:21538</a>&quot;.<br>Server: OpenSIPS (1.4.5-notls (i386/linux)).<br>
Content-Length: 0.<br>.<br><br><br>U <a href="http://118.69.139.66:21198">118.69.139.66:21198</a> -&gt; OPENSIPS_IP:5060<br>.<br>.<br>..............<br><br>U <a href="http://118.69.139.66:21538">118.69.139.66:21538</a> -&gt; OPENSIPS_IP:5060<br>
.<br>.<br>..............<br><br>U OPENSIPS_IP:5060 -&gt; ASTERISK_IP:5060<br>INVITE sip:3000@ASTERISK_IP:5060 SIP/2.0.<br>Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.1.<br>
Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>Max-Forwards: 69.<br>Contact: &lt;<a href="http://sip:6000@118.69.139.66:21538">sip:6000@118.69.139.66:21538</a>&gt;.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>
Content-Type: application/sdp.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Content-Length: 443.<br>P-hint: HTK: Fix nated contact.<br>P-hint: HTK: INVITE go to on_reply_route[1].<br>P-hint: INVITE||ACK + FORCE_RTP_PROXY.<br>
P-hint: HTK - 408 and route to VM ... .<br>.<br>v=0.<br>o=- 6 2 IN IP4 192.168.1.150.<br>s=CounterPath X-Lite 3.0.<br>c=IN IP4 174.132.45.26.<br>t=0 0.<br>m=audio 41790 RTP/AVP 107 119 100 106 0 105 98 8 3 101.<br>a=alt:1 1 : gbVHmzwd FPodLTLD 192.168.1.150 48192.<br>
a=fmtp:101 0-15.<br>a=rtpmap:107 BV32/16000.<br>a=rtpmap:119 BV32-FEC/16000.<br>a=rtpmap:100 SPEEX/16000.<br>a=rtpmap:106 SPEEX-FEC/16000.<br>a=rtpmap:105 SPEEX-FEC/8000.<br>a=rtpmap:98 iLBC/8000.<br>a=rtpmap:101 telephone-event/8000.<br>
a=sendrecv.<br>a=nortpproxy:yes.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21198">118.69.139.66:21198</a><br>CANCEL sip:3000@118.69.139.66:21198;rinstance=cde698603c5f417a SIP/2.0.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>
From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>CSeq: 1 CANCEL.<br>Max-Forwards: 70.<br>User-Agent: OpenSIPS (1.4.5-notls (i386/linux)).<br>
Content-Length: 0.<br>.<br><br><br>U ASTERISK_IP:5060 -&gt; OPENSIPS_IP:5060<br>SIP/2.0 100 Trying.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.1;received=OPENSIPS_IP.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>
CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Length: 0.<br>.<br><br><br>U ASTERISK_IP:5060 -&gt; OPENSIPS_IP:5060<br>
SIP/2.0 180 Ringing.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.1;received=OPENSIPS_IP.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>
CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Length: 0.<br>.<br><br><br>U ASTERISK_IP:5060 -&gt; OPENSIPS_IP:5060<br>
SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.1;received=OPENSIPS_IP.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>
CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Type: application/sdp.<br>Content-Length: 289.<br>
.<br>v=0.<br>o=root 7049 7049 IN IP4 ASTERISK_IP.<br>s=session.<br>c=IN IP4 ASTERISK_IP.<br>t=0 0.<br>m=audio 19922 RTP/AVP 3 0 8 101.<br>a=rtpmap:3 GSM/8000.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>
a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>a=ptime:20.<br>a=sendrecv.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 180 Ringing.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>
CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Length: 0.<br>P-hint: HTK: On_reply_route[1] processing.<br>
.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>
CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Type: application/sdp.<br>Content-Length: 289.<br>
P-hint: HTK: On_reply_route[1] processing.<br>.<br>v=0.<br>o=root 7049 7049 IN IP4 ASTERISK_IP.<br>s=session.<br>c=IN IP4 ASTERISK_IP.<br>t=0 0.<br>m=audio 19922 RTP/AVP 3 0 8 101.<br>a=rtpmap:3 GSM/8000.<br>a=rtpmap:0 PCMU/8000.<br>
a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>a=ptime:20.<br>a=sendrecv.<br><br><br>U <a href="http://118.69.139.66:21198">118.69.139.66:21198</a> -&gt; OPENSIPS_IP:5060<br>
SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>Contact: &lt;sip:3000@118.69.139.66:21198;rinstance=cde698603c5f417a&gt;.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=4b7c2d11.<br>
From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 CANCEL.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Content-Length: 0.<br>.<br>
<br><br>U <a href="http://118.69.139.66:21198">118.69.139.66:21198</a> -&gt; OPENSIPS_IP:5060<br>SIP/2.0 487 Request Terminated.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=4b7c2d11.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>
Content-Length: 0.<br>.<br><br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21198">118.69.139.66:21198</a><br>ACK sip:3000@118.69.139.66:21198;rinstance=cde698603c5f417a SIP/2.0.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.0.<br>
From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=4b7c2d11.<br>CSeq: 1 ACK.<br>Max-Forwards: 70.<br>
User-Agent: OpenSIPS (1.4.5-notls (i386/linux)).<br>Content-Length: 0.<br>.<br><br><br>U ASTERISK_IP:5060 -&gt; OPENSIPS_IP:5060<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.1;received=OPENSIPS_IP.<br>
Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>
Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Type: application/sdp.<br>Content-Length: 289.<br>.<br>v=0.<br>o=root 7049 7049 IN IP4 ASTERISK_IP.<br>s=session.<br>c=IN IP4 ASTERISK_IP.<br>t=0 0.<br>
m=audio 19922 RTP/AVP 3 0 8 101.<br>a=rtpmap:3 GSM/8000.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>a=ptime:20.<br>a=sendrecv.<br>
<br><br>U OPENSIPS_IP:5060 -&gt; <a href="http://118.69.139.66:21538">118.69.139.66:21538</a><br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-7824577bf642b972-1---d8754z-;rport=21538.<br>
Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>
CSeq: 1 INVITE.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>Contact: &lt;sip:3000@ASTERISK_IP&gt;.<br>Content-Type: application/sdp.<br>Content-Length: 289.<br>
P-hint: HTK: On_reply_route[1] processing.<br>.<br>v=0.<br>o=root 7049 7049 IN IP4 ASTERISK_IP.<br>s=session.<br>c=IN IP4 ASTERISK_IP.<br>t=0 0.<br>m=audio 19922 RTP/AVP 3 0 8 101.<br>a=rtpmap:3 GSM/8000.<br>a=rtpmap:0 PCMU/8000.<br>
a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>a=ptime:20.<br>a=sendrecv.<br><br><br>U <a href="http://118.69.139.66:21538">118.69.139.66:21538</a> -&gt; OPENSIPS_IP:5060<br>
ACK sip:3000@ASTERISK_IP SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;branch=z9hG4bK-d8754z-d73e644df657cb55-1---d8754z-;rport.<br>Max-Forwards: 70.<br>Route: &lt;sip:OPENSIPS_IP;lr;ftag=4d457d11&gt;.<br>Contact: &lt;<a href="http://sip:6000@118.69.139.66:21538">sip:6000@118.69.139.66:21538</a>&gt;.<br>
To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 ACK.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>
Content-Length: 0.<br>.<br><br><b><br>U OPENSIPS_IP:5060 -&gt; ASTERISK_IP:5060<br>ACK sip:3000@ASTERISK_IP SIP/2.0.<br><span style="background-color: rgb(255, 0, 0);">Record-Route: &lt;sip:OPENSIPS_IP;lr=on;ftag=4d457d11&gt;.</span><br>
Via: SIP/2.0/UDP OPENSIPS_IP;branch=z9hG4bKe633.8cbbe42.3.<br>Via: SIP/2.0/UDP 192.168.1.150:38192;received=118.69.139.66;branch=z9hG4bK-d8754z-d73e644df657cb55-1---d8754z-;rport=21538.<br>Max-Forwards: 69.<br>Route: &lt;sip:OPENSIPS_IP;lr;ftag=4d457d11&gt;.<br>
Contact: &lt;<a href="http://sip:6000@118.69.139.66:21538">sip:6000@118.69.139.66:21538</a>&gt;.<br>To: &quot;3000&quot;&lt;sip:3000@OPENSIPS_IP&gt;;tag=as4ed290a8.<br>From: &quot;6000&quot;&lt;sip:6000@OPENSIPS_IP&gt;;tag=4d457d11.<br>
Call-ID: MGYxMWViNzg0YzAwN2Y0YTBhYWQ2MjkwZDcxZTFiN2Q..<br>CSeq: 1 ACK.<br>User-Agent: X-Lite release 1100l stamp 47546.<br>Content-Length: 0.<br>P-hint: HTK: Outbound.<br>P-hint: Route[1] Processing.<br>.</b><br><br><br>