[OpenSIPS-Users] ACK not forwarding

ahmeddd lamiriahmedamin at gmail.com
Mon Oct 30 12:32:31 EDT 2017

I'm ahmed and I'm working on opensips.
Actually, I sow your questions on the forum and I have a problem that I
think you have the answer.

Actually, I did a simple senario to route calls between users registered in
opensips server, but when it comes to real IP phones( that each one has its
own ip address ), it doasn't work. ( trunk ).
for example: my opensips address:
and my IP phone address is :
it is all about sip trunk I think.

I am blocked in this part and searched a lot for a solution, maybe there is
a detail that I have missed.
which function is responsible for handling requests and responses with an IP
phone ?

 I used this code :

 account only INVITEs
    if ($rU=="49894614950666"){
                        $rU = $tU;
                        $du = "sip:49894614950666 at;user=phone";
                        xlog("reference to  URI of 'To' header  ====> 
                        xlog("reference to domain in URI of 'TO' header 
====>  $td");
                        # route the call out based on RURI



         seturi("sip:49894614950666 at;user=phone");
         $du = "sip:49894614950666 at;user=phone";
         #replace the domain part of RURI to point to test8s2 or test8s
         rewriteuri("sip:49894614950666 at;user=phone");
         xlog("route 2 :   forwarding to $tU  \n   $ruri  \n");
         xlog("Received $rm from $fu (callid: $ci)\n");

#    if(nat_uac_test("8")) {
#        xlog("We have incoming SDP, let's fix if it's behind NAT\n");
#        fix_nated_sdp("2");
#         }

                if (is_method("INVITE")) {

#         if (isflagset(10)) {
#        add_rr_param(";nat=yes");
#        }

        if (!t_relay()) {

When calling from a soft phone the requested number, the server sends a
request INVITE as follow : 

INVITE sip:49894614950666 at;transport=TCP SIP/2.0 
Via: SIP/2.0/TCP;branch=z9hG4bK-524287-1---dedd27ee7475c0f1
Max-Forwards: 70 
Contact: <sip:test11 at;transport=tcp> 
To: <sip:49894614950666 at;transport=TCP> 
From: <sip:test11 at;transport=TCP>;tag=2f025b44 
Call-ID: tdO14DnlADH9Okx6Sr0p4A.. 
Content-Type: application/sdp 
User-Agent: Z 3.15.40006 rv2.8.20 
Allow-Events: presence, kpml, talk 
Content-Length: 237 

and the target VM resend an INVITE request to Opensips server, but then, the
server start to send to himself messages and not responding the target

I wonder that the "To" field in the INVITE message is false !
opensips only sends a invite to the IP phone and ignore messages coming from
it, does not respond after with any ack.
what should I add or modify ?
thank you a lot.

Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

More information about the Users mailing list