[OpenSIPS-Users] (no subject)

nguyen khue minhkhue49da at yahoo.com
Fri Sep 30 09:56:44 CEST 2011


Hi Faisal,

This block is in main route block. If in your configuration file haven't it, you can add manual. I think that, when your softphone send ACK to opensips, opensips cannot route it to Free-Switch or Asterisk. 
Before, I had same error, I don't known why it occur but when I insert command t_relay(), opensips work normal.

Best regards
Khue Nguyen.


________________________________
From: Faisal Rehman <faisal.rehman22 at yahoo.com>
To: nguyen khue <minhkhue49da at yahoo.com>; "users at lists.opensips.org" <users at lists.opensips.org>
Sent: Friday, September 30, 2011 2:47 PM
Subject: Re: [OpenSIPS-Users] (no subject)


Hi Khue,

What will that script do in my scenario, will you please a little explain to me.


 
Warmest Regards,


Faisal Rehman


________________________________
From: nguyen khue <minhkhue49da at yahoo.com>
To: Faisal Rehman <faisal.rehman22 at yahoo.com>; "users at lists.opensips.org" <users at lists.opensips.org>
Sent: Friday, September 30, 2011 12:41 PM
Subject: Re: [OpenSIPS-Users] (no subject)


Hi Faisal,

I don't sure about your error. But, you can try add some lines into block

if (has_totag()){
if (loose_route()){
//add this lines
if (is_method("ACK")){
if (t_check_trans()){ 
t_relay(); 
 }
}
}
}

Best regards
Khue Nguyen.


________________________________
From: Faisal Rehman <faisal.rehman22 at yahoo.com>
To: nguyen khue <minhkhue49da at yahoo.com>; "users at lists.opensips.org" <users at lists.opensips.org>
Sent: Friday, September 30, 2011 2:01 PM
Subject: Re: [OpenSIPS-Users] (no subject)


Hi Khue,

Please find the necessary configuration that I have done for Load Balancing work, the calls are going and Load balance is also working but the problem is that I am getting much packets of ACK & 200OK, please see the configuration as:

 # the method used is different for invite/register requests
        # unknown methods are rejected here
        if (is_method("INVITE")) {
                if (!load_balance("1","pstn","1")) {
                        send_reply("503","Service Unavailable");
                        exit;
                }
        }
        else if (is_method("REGISTER")) {
                if (!ds_select_dst("1", "0")) {
                        send_reply("503","Service Unavailable");
                        exit;
                }
        }
        else {
                send_reply("405","Method Not Allowed");
                exit;
        }

        # route the request
        if (!t_relay()) {
                sl_reply_error();
        }
}
                                         
 
Warmest Regards,


Faisal Rehman


________________________________
From: nguyen khue <minhkhue49da at yahoo.com>
To: Faisal Rehman <faisal.rehman22 at yahoo.com>; "users at lists.opensips.org" <users at lists.opensips.org>
Sent: Thursday, September 29, 2011 7:56 PM
Subject: Re: [OpenSIPS-Users] (no subject)


Hi Faisal,

Please post your config file.

Best regards,
Khue Nguyen.


________________________________
From: Faisal Rehman <faisal.rehman22 at yahoo.com>
To: "users at lists.opensips.org" <users at lists.opensips.org>
Sent: Thursday, September 29, 2011 8:39 PM
Subject: [OpenSIPS-Users] (no subject)


Hi Everyone,

I am just testing calls from OpenSIPS to Free-Switch but I am facing a problem that too many ACK & 200OK packets are being generated by OpenSIPS, so how can I remove this problem.

 
With Best Regards,


Faisal Rehman

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110930/b59575fb/attachment-0001.htm>


More information about the Users mailing list