Dear All, Hi all,
i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing because the ACK message is sent to Private endpoint IP instead of PUBLIC IP....Can you please let me know what's wrong?Please find below my ACK method that i define in loose route methode
f ( is_method("ACK") ) { if ( t_check_trans() ) { xlog("AAAAKKKCCCCCCCNNNNNN"); force_rport(); t_relay(); exit;
}
Regards
Dear Sir
Please find below the loose_route method...This will be much clear:
if(loose_route()){
if (is_method("BYE")) { setflag(2); # do accounting ... setflag(7); # ... even if the transaction fails xlog("BYEEEEEEEEEEEEEEEEEEEE"); t_relay(); }
#t_on_reply("7"); #unforce_rtp_proxy(); #fix_nated_sdp("1"); if (is_method("INVITE")) {
xlog("3333333333333333333333333333333333333333333339999999999999999999999999999999999"); fix_nated_contact(); t_on_failure("1"); force_rtp_proxy(); t_relay(); exit(); }
if ( is_method("ACK") ) { if ( t_check_trans() ) { xlog("AAAAKKKCCCCCCCNNNNNN"); fix_nated_contact(); t_relay(); exit;
} } }
Please help
On Fri, Mar 20, 2009 at 11:06 PM, michel freiha michofr@gmail.com wrote:
Dear All, Hi all,
i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing because the ACK message is sent to Private endpoint IP instead of PUBLIC IP....Can you please let me know what's wrong?Please find below my ACK method that i define in loose route methode
f ( is_method("ACK") ) { if ( t_check_trans() ) { xlog("AAAAKKKCCCCCCCNNNNNN"); force_rport(); t_relay(); exit;
}
Regards
El Viernes, 20 de Marzo de 2009, michel freiha escribió:
Dear All, Hi all,
i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing because the ACK message is sent to Private endpoint IP instead of PUBLIC IP....Can you please let me know what's wrong?Please find below my ACK method that i define in loose route methode
Are you running "fix_contact()" in reply_route for 200 OK ?
Dear Inaki,
Do you mean I should add t_on_reply("1"); and define the on_reply_route as follow:
onreply_route[1] { # if (t_check_status("2[0-9][0-9]") ) if((t_check_status("200|183|180") && search("Content_Type: application/sdp")) || search("Content-Type: application/sdp"))
{ fix_contact() force_rtp_proxy(); }
Regards
On Fri, Mar 20, 2009 at 11:17 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Viernes, 20 de Marzo de 2009, michel freiha escribió:
Dear All, Hi all,
i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing because the ACK message is sent to Private endpoint IP instead of PUBLIC IP....Can you please let me know what's wrong?Please find below my ACK method that i define in loose route methode
Are you running "fix_contact()" in reply_route for 200 OK ?
-- Iñaki Baz Castillo
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Yes.
michel freiha wrote:
Dear Inaki,
Do you mean I should add t_on_reply("1"); and define the on_reply_route as follow:
onreply_route[1] { # if (t_check_status("2[0-9][0-9]") ) if((t_check_status("200|183|180") && search("Content_Type: application/sdp")) || search("Content-Type: application/sdp"))
{ fix_contact() force_rtp_proxy(); }
Regards
On Fri, Mar 20, 2009 at 11:17 PM, Iñaki Baz Castillo <ibc@aliax.net mailto:ibc@aliax.net> wrote:
El Viernes, 20 de Marzo de 2009, michel freiha escribió: > Dear All, > Hi all, > > i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing > because the ACK message is sent to Private endpoint IP instead of PUBLIC > IP....Can you please let me know what's wrong?Please find below my ACK > method that i define in loose route methode Are you running "fix_contact()" in reply_route for 200 OK ? -- Iñaki Baz Castillo _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Dear Inaki,
Sorry for that but can you explain more? I tried a lot of config and all sucks...I need to know please if you have the right config
Regards
On Fri, Mar 20, 2009 at 11:22 PM, michel freiha michofr@gmail.com wrote:
Dear Inaki,
Do you mean I should add t_on_reply("1"); and define the on_reply_route as follow:
onreply_route[1] { # if (t_check_status("2[0-9][0-9]") ) if((t_check_status("200|183|180") && search("Content_Type: application/sdp")) || search("Content-Type: application/sdp"))
{ fix_contact() force_rtp_proxy(); }
Regards
On Fri, Mar 20, 2009 at 11:17 PM, Iñaki Baz Castillo ibc@aliax.netwrote:
El Viernes, 20 de Marzo de 2009, michel freiha escribió:
Dear All, Hi all,
i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing because the ACK message is sent to Private endpoint IP instead of PUBLIC IP....Can you please let me know what's wrong?Please find below my ACK method that i define in loose route methode
Are you running "fix_contact()" in reply_route for 200 OK ?
-- Iñaki Baz Castillo
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
You need to fix up the contact header in the 200 OKs from the far end.
michel freiha wrote:
Dear All, Hi all,
i'm trying to send FAX to an endpoint behind a NAT...The FAX is failing because the ACK message is sent to Private endpoint IP instead of PUBLIC IP....Can you please let me know what's wrong?Please find below my ACK method that i define in loose route methode
f ( is_method("ACK") ) { if ( t_check_trans() ) { xlog("AAAAKKKCCCCCCCNNNNNN"); force_rport(); t_relay(); exit;
}
Regards
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users