hi User
May the Problem in Router where the server located...
OR UA client side Router ... Block the ACK session ... hung up
automatically after 32 sec....
Or problem in Softphone setting ( x-lite 3.0 )
UAC 1 and 2 are witth 192.168.2.20. and 21 which are behind the NAT with
public.... yy.y.y..y ( softphone)
UAC 3 is softphne which is located in server network with ip
192.168.2.7 have public ip as xxx.xxx.x.xx ( SIP DOMAIN NAME)...
CALL from UAC 1 to UAC 2 hungup the phone after 32 sec when it lefted . UAC
2 is hung upping and UAC1 is call establishing the Session....
CALL from UAC 2 to UAC 3 same as above....
CALL from UAC 3 to UAC 2 not hungup .
this is mines openser.cfg from route main
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=====
_________________________________________________________________________
route {
# -----------------------------------------------------------------
# Sanity Check Section
# -----------------------------------------------------------------
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
return;
};
if (msg:len > max_len) {
sl_send_reply("513", "Message Overflow");
return;
};
# -----------------------------------------------------------------
# Record Route Section and Acc Section
# -----------------------------------------------------------------
if (method=="INVITE" && client_nat_test("3")) {
# INSERT YOUR IP ADDRESS HERE
record_route_preset("192.168.2.75:5060;nat=yes");
} else if (method!="REGISTER") {
record_route();
setflag(1);
};
# -----------------------------------------------------------------
# Call Tear Down Section
# -----------------------------------------------------------------
if (method=="BYE" || method=="CANCEL") {
end_media_session();
};
# -----------------------------------------------------------------
# Loose Route Section
# -----------------------------------------------------------------
if (loose_route()) {
if (has_totag() && (method=="INVITE" ||
method=="ACK")) {
if (client_nat_test("3") ||
search("^Route:.*;nat=yes")) {
setflag(6);
use_media_proxy();
};
};
route(1);
return;
};
# -----------------------------------------------------------------
# Call Type Processing Section
# -----------------------------------------------------------------
if (uri!=myself) {
route(1);
return;
};
if (uri==myself) {
if (method=="CANCEL") {
route(3);
return;
} else if (method=="INVITE") {
route(4);
#route(3);
return;
} else if (method=="REGISTER") {
route(2);
return;
};
lookup("aliases");
if (uri!=myself) {
route(1);
return;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
return;
};
};
route(1);
}
route[1] {
# -----------------------------------------------------------------
# Default Message Handler
# -----------------------------------------------------------------
t_on_reply("1");
if (!t_relay()) {
if (method=="INVITE" || method=="ACK") {
end_media_session();
};
sl_reply_error();
};
}
route[2] {
# -----------------------------------------------------------------
# REGISTER Message Handler
# ----------------------------------------------------------------
sl_send_reply("100", "Trying");
if (!search("^Contact:\ +\*") && client_nat_test("7"))
{
setflag(6);
fix_nated_register();
force_rport();
};
if (!www_authorize("","subscriber")) {
www_challenge("","0");
return;
};
if (!check_to()) {
sl_send_reply("401", "Unauthorized");
return;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
# -----------------------------------------------------------------
# CANCEL and INVITE Message Handler
# -----------------------------------------------------------------
if (client_nat_test("3")) {
setflag(7);
force_rport();
fix_nated_contact();
};
lookup("aliases");
if (uri!=myself) {
route(1);
return;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
return;
};
if (method=="CANCEL") {
route(1);
return;
};
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
return;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
return;
};
consume_credentials();
if (isflagset(6) || isflagset(7)) {
use_media_proxy();
};
route(1);
}
#--------------------------------------------------------------------------------------------
# Handling Trusted Sources
#--------------------------------------------------------------------------------------------
route[4] {
if(allow_trusted()) {
rewritehost("192.168.XX.XX"); #Our IP address
t_relay_to(192.168.XX.XX:5060); #relaying trusted calls to its
destination
return;
};
else { route(3); };
}
#---------------------------------------------------------------------------------------------
# Reply Route
#---------------------------------------------------------------------------------------------
onreply_route[1] {
if ((isflagset(6) || isflagset(7)) &&
(status=~"(180)|(183)|2[0-9][0-9]")) {
if (!search("^Content-Length:\ +0")) {
use_media_proxy();
};
};
if (client_nat_test("1")) {
fix_nated_contact();
};
}
-----------------------------------------------------------------------------------------------------------------------------------------------------
--
Thanks and Regards with cheers
Sunkara Ravi Prakash (Voip Developer)
Hyperion Technology
Kondapur, Hi-tech city,
Hyderabad.
www.hyperion-tech.com
+91-9985077535