Hi Bogdan I tried what you told me to, however I still have the same problem.&nbsp; Seems like nothing is hanging up now. However if I used this config before the loose route, things are slightly better, just that the caller(softphne) hangs up first, then the calle(softphone) wont hang up itself.<br> <br>  if (method=="BYE" || method=="CANCEL") {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>  &nbsp; } ;<br> <br> The bye is still not working right. Below is my config that I tried using ur suggestion and ngrep:<br> <br> debug=3<br> fork=yes<br> log_stderror=no<br> <br> listen=68.xxx.xxx.xxx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> alias=test.com<br> <br> port=5060<br> children=16<br> <br> dns=no<br> rev_dns=no<br> <br> fifo="/tmp/openser_fifo"<br> fifo_db_url="mysql://openser:openserrw@localhost/openser"<br> <br> loadmodule
 "/usr/local/lib/openser/modules/mysql.so"<br> loadmodule "/usr/local/lib/openser/modules/sl.so"<br> loadmodule "/usr/local/lib/openser/modules/tm.so"<br> loadmodule "/usr/local/lib/openser/modules/rr.so"<br> loadmodule "/usr/local/lib/openser/modules/maxfwd.so"<br> loadmodule "/usr/local/lib/openser/modules/usrloc.so"<br> loadmodule "/usr/local/lib/openser/modules/registrar.so"<br> loadmodule "/usr/local/lib/openser/modules/auth.so"<br> loadmodule "/usr/local/lib/openser/modules/auth_db.so"<br> loadmodule "/usr/local/lib/openser/modules/uri.so"<br> loadmodule "/usr/local/lib/openser/modules/uri_db.so"<br> loadmodule "/usr/local/lib/openser/modules/domain.so"<br> loadmodule "/usr/local/lib/openser/modules/nathelper.so"<br> loadmodule "/usr/local/lib/openser/modules/avpops.so"<br> loadmodule "/usr/local/lib/openser/modules/textops.so"<br> loadmodule "/usr/local/lib/openser/modules/xlog.so"<br> loadmodule "/usr/local/lib/openser/modules/permissions.so"<br> <br>
 modparam("auth_db|permissions|uri_db|usrloc", "db_url",<br> &nbsp;&nbsp;&nbsp; "mysql://openser:openserrw@localhost/openser")<br> modparam("auth_db", "calculate_ha1", 1)<br> modparam("auth_db", "password_column", "password")<br> <br> modparam("nathelper", "natping_interval", 30) <br> modparam("nathelper", "ping_nated_only", 1)&nbsp;&nbsp; <br> modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")<br> <br> modparam("usrloc", "db_mode", 2)<br> <br> modparam("registrar", "nat_flag", 6)<br> <br> modparam("rr", "enable_full_lr", 1)<br> <br> modparam("tm", "fr_inv_timer", 27)<br> modparam("tm", "fr_inv_timer_avp", "inv_timeout")<br> <br> modparam("permissions", "db_mode", 1)<br> modparam("permissions", "trusted_table", "trusted")<br> <br> <br> route {<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # Sanity Check Section<br> &nbsp;&nbsp;&nbsp; #
 -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; if (!mf_process_maxfwd_header("10")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("483", "Too Many Hops");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; if (msg:len &gt; max_len) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("513", "Message Overflow");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # Record Route Section<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; if (method!="REGISTER") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; record_route();<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; if (method=="BYE" || method=="CANCEL") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 unforce_rtp_proxy();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(method=="CANCEL")<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br> &nbsp;&nbsp;&nbsp; } ;<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # Loose Route Section<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; if (loose_route()) {<br> <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ((method=="INVITE" || method=="REFER") &amp;&amp; !has_totag()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403", "Forbidden");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (method=="INVITE") {<br> <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if
 (!proxy_authorize("","subscriber")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; proxy_challenge("","0");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else if (!check_from()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403", "Use From=ID");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; consume_credentials();<br> <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (nat_uac_test("19")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(6);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rport();<br> &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy("l");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # Call Type Processing Section<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; if (!is_uri_host_local()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (is_from_local() || allow_trusted()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403", "Forbidden");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; if (method=="ACK") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; } else if (method=="CANCEL") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; } else if (method=="INVITE") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(3);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; } else&nbsp; if (method=="REGISTER") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(2);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; lookup("aliases");<br>
 &nbsp;&nbsp;&nbsp; if (!is_uri_host_local()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; if (!lookup("location")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "User Not Found");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; route(1);<br> }<br> <br> route[1] {<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # Default Message Handler<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> <br> &nbsp;&nbsp;&nbsp; t_on_reply("1");<br> <br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; if (!t_relay()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ((method=="INVITE" || method=="ACK") &amp;&amp; isflagset(6)) {<br> &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<br> &nbsp;&nbsp;&nbsp; };<br> }<br> <br> route[2] {<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # REGISTER Message Handler<br> &nbsp;&nbsp;&nbsp; # ----------------------------------------------------------------<br> <br> &nbsp;&nbsp;&nbsp; if (!search("^Contact:[ ]*\*") &amp;&amp; nat_uac_test("19")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(6);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_register();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rport();<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; sl_send_reply("100", "Trying");<br> <br> &nbsp;&nbsp;&nbsp; if (!www_authorize("","subscriber")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; www_challenge("","0");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 exit;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; if (!check_to()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("401", "Unauthorized");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; consume_credentials();<br> <br> &nbsp;&nbsp;&nbsp; if (!save("location")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<br> &nbsp;&nbsp;&nbsp; };<br> }<br> <br> route[3] {<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # INVITE Message Handler<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> <br> &nbsp;&nbsp;&nbsp; if (!allow_trusted()) {<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!proxy_authorize("","subscriber")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; proxy_challenge("","0");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else if (!check_from()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403", "Use From=ID");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; consume_credentials();<br> <br> &nbsp;&nbsp;&nbsp; if (nat_uac_test("19")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(6);<br> &nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; lookup("aliases");<br> &nbsp;&nbsp;&nbsp; if (!is_uri_host_local()) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; if (uri=~"^sip:[0-9]{3}@") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lookup("aliases");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 lookup("location");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };&nbsp;&nbsp;&nbsp; <br> <br> &nbsp;&nbsp;&nbsp; if(!lookup("location")){<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (uri=~"^sip:[0-9]*@") {&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(5);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> <br> <br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "User Not Found");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; route(1);<br> }<br> <br> route[4] {<br> <br> &nbsp;&nbsp;&nbsp; #
 -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # NAT Traversal Section<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> <br> &nbsp;&nbsp;&nbsp; if (isflagset(6)) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rport();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<br> &nbsp;&nbsp;&nbsp; }<br> }<br> <br> route[5] {<br> <br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> &nbsp;&nbsp;&nbsp; # PSTN Handler<br> &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br> <br> &nbsp;&nbsp;&nbsp; rewritehostport("pstn.gateway:5060"); <br> <br> &nbsp;&nbsp;&nbsp; avp_write("i:45", "inv_timeout");<br> <br> &nbsp;&nbsp;&nbsp; route(1);<br> }<br> <br> onreply_route[1] {<br> <br> &nbsp;&nbsp;&nbsp; if (isflagset(6) &amp;&amp;
 status=~"(180)|(183)|2[0-9][0-9]") {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!search("^Content-Length:[ ]*0")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br> &nbsp;&nbsp;&nbsp; };<br> <br> &nbsp;&nbsp;&nbsp; if (nat_uac_test("1")) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br> &nbsp;&nbsp;&nbsp; };<br> }<br> <br><br> [root@adsl-068-213-154-138 openser]# ngrep -qt port 5060<br> interface: eth0 (68.xxx.xxx.xxx/255.255.255.248)<br> filter: (ip) and ( port 5060 )<br> <br> <br> U 2006/06/30 21:13:29.086503 70.xxx.xxx.xxx:5062 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; BYE sip:68.xxx.xxx.xxx SIP/2.0..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..From: CIO&lt;sip:202@test.com&gt;;tag=2d8ac-e57529..To:<br> &nbsp;&nbsp; &lt;sip:200@test.com&gt;;tag=4197719146..CSeq: 102 BYE..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport..Contact: CIO&lt;sip:202@70.xxx.xxx.xxx:5062&gt;..Ma<br> &nbsp;
 x-Forwards: 70..Route: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..User-Agent: BVA8051S (LDTK AR18D ) STUN 1 0 0..Supported: timer..Proxy-Authorization: Digest userna<br> &nbsp; me="202",realm="test.com",uri="sip:68.xxx.xxx.xxx",response="b037fee90080d847fa4c837faba14862",nonce="44a5db70e33b5ec051569d1d7fbc2c6f328d<br> &nbsp; 63f2"..Content-Length: 0....<br> <br> U 2006/06/30 21:13:29.602024 70.xxx.xxx.xxx:5062 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; BYE sip:68.xxx.xxx.xxx SIP/2.0..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..From: CIO&lt;sip:202@test.com&gt;;tag=2d8ac-e57529..To:<br> &nbsp;&nbsp; &lt;sip:200@test.com&gt;;tag=4197719146..CSeq: 102 BYE..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport..Contact: CIO&lt;sip:202@70.xxx.xxx.xxx:5062&gt;..Ma<br> &nbsp; x-Forwards: 70..Route: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..User-Agent: BVA8051S (LDTK AR18D ) STUN 1 0 0..Supported: timer..Proxy-Authorization: Digest userna<br> &nbsp;
 me="202",realm="test.com",uri="sip:68.xxx.xxx.xxx",response="b037fee90080d847fa4c837faba14862",nonce="44a5db70e33b5ec051569d1d7fbc2c6f328d<br> &nbsp; 63f2"..Content-Length: 0....<br> <br> U 2006/06/30 21:13:30.259448 70.xxx.xxx.xxx:1024 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; SIP/2.0 200 Ok..Via: SIP/2.0/UDP 68.xxx.xxx.xxx;branch=z9hG4bKb10a.4676fc16.0..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport=5062..From: CIO &lt;sip:202@test.com<br> &nbsp; &gt;;tag=2d8ac-e57529..To: &lt;sip:200@test.com&gt;;tag=4197719146..Contact: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..Record-Route: &lt;sip:68.21<br> &nbsp; 3.154.138;ftag=2d8ac-e57529;lr=on&gt;..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..CSeq: 101 INVITE..Content-Type: application/sdp..Server: X-<br> &nbsp; Lite release 1105x..Content-Length: 308....v=0..o=200 378856709 378857471 IN IP4 70.xxx.xxx.xxx..s=X-Lite..c=IN IP4 70.xxx.xxx.xxx..t=0 0..m=audio 8000 RT<br> &nbsp; P/AVP 0 8 3 98 97 101..a=rtpmap:0 pcmu/8000..a=rtpmap:8
 pcma/8000..a=rtpmap:3 gsm/8000..a=rtpmap:98 iLBC/8000..a=rtpmap:97 speex/8000..a=rtpmap:101 tele<br> &nbsp; phone-event/8000..a=fmtp:101 0-15..a=sendrecv..<br> <br> U 2006/06/30 21:13:30.259708 68.xxx.xxx.xxx:5060 -&gt; 70.xxx.xxx.xxx:5062<br> &nbsp; SIP/2.0 200 Ok..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport=5062..From: CIO &lt;sip:202@test.com&gt;;tag=2d8ac-e57529..To: &lt;sip:200@test.com<br> &nbsp; &gt;;tag=4197719146..Contact: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..Record-Route: &lt;sip:68.xxx.xxx.xxx;ftag=2d8ac-e57529;lr=on&gt;..Call-ID: 7b304ac5-59d54-c0a<br> &nbsp; 814d0@test.com..CSeq: 101 INVITE..Content-Type: application/sdp..Server: X-Lite release 1105x..Content-Length: 308....v=0..o=200 378856709<br> &nbsp;&nbsp; 378857471 IN IP4 70.xxx.xxx.xxx..s=X-Lite..c=IN IP4 70.xxx.xxx.xxx..t=0 0..m=audio 8000 RTP/AVP 0 8 3 98 97 101..a=rtpmap:0 pcmu/8000..a=rtpmap:8 pcma/80<br> &nbsp; 00..a=rtpmap:3 gsm/8000..a=rtpmap:98 iLBC/8000..a=rtpmap:97 speex/8000..a=rtpmap:101
 telephone-event/8000..a=fmtp:101 0-15..a=sendrecv..<br> <br> U 2006/06/30 21:13:30.399353 70.xxx.xxx.xxx:5062 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; ACK sip:68.xxx.xxx.xxx SIP/2.0..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..From: CIO&lt;sip:202@test.com&gt;;tag=2d8ac-e57529..To:<br> &nbsp;&nbsp; &lt;sip:200@test.com&gt;;tag=4197719146..CSeq: 101 ACK..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport..Contact: CIO&lt;sip:202@70.xxx.xxx.xxx:5062&gt;..Ma<br> &nbsp; x-Forwards: 70..Route: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..User-Agent: BVA8051S (LDTK AR18D ) STUN 1 0 0..Content-Length: 0....<br> <br> U 2006/06/30 21:13:30.399553 68.xxx.xxx.xxx:5060 -&gt; 70.xxx.xxx.xxx:5060<br> &nbsp; ACK sip:200@70.xxx.xxx.xxx:5060 SIP/2.0..Record-Route: &lt;sip:68.xxx.xxx.xxx;ftag=2d8ac-e57529;lr=on&gt;..Call-ID: 7b304ac5-59d54-c0a814d0@test.com<br> &nbsp; ..From: CIO&lt;sip:202@test.com&gt;;tag=2d8ac-e57529..To: &lt;sip:200@test.com&gt;;tag=4197719146..CSeq: 101 ACK..Via: SIP/2.0/UDP 68<br> &nbsp;
 .213.154.138;branch=0..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport=5062..Contact: CIO&lt;sip:202@70.xxx.xxx.xxx:5062&gt;..Max-Forwards: 69..User-Agent: BVA8051S<br> &nbsp; (LDTK AR18D ) STUN 1 0 0..Content-Length: 0....<br> <br> U 2006/06/30 21:13:30.608084 70.xxx.xxx.xxx:5062 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; BYE sip:68.xxx.xxx.xxx SIP/2.0..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..From: CIO&lt;sip:202@test.com&gt;;tag=2d8ac-e57529..To:<br> &nbsp;&nbsp; &lt;sip:200@test.com&gt;;tag=4197719146..CSeq: 102 BYE..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5062;rport..Contact: CIO&lt;sip:202@70.xxx.xxx.xxx:5062&gt;..Ma<br> &nbsp; x-Forwards: 70..Route: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..User-Agent: BVA8051S (LDTK AR18D ) STUN 1 0 0..Supported: timer..Proxy-Authorization: Digest userna<br> &nbsp; me="202",realm="test.com",uri="sip:68.xxx.xxx.xxx",response="b037fee90080d847fa4c837faba14862",nonce="44a5db70e33b5ec051569d1d7fbc2c6f328d<br> &nbsp; 63f2"..Content-Length: 0....<br> <br> U
 2006/06/30 21:13:32.324907 70.xxx.xxx.xxx:1024 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; BYE sip:202@70.xxx.xxx.xxx:5062 SIP/2.0..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5060;rport;branch=z9hG4bK6DCE6FB5347E4C64B528E78857E75918..From: &lt;sip:200@test.com<br> &nbsp; &gt;;tag=4197719146..To: CIO &lt;sip:202@test.com&gt;;tag=2d8ac-e57529..Contact: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..Route: &lt;sip:68.xxx.xx<br> &nbsp; x.xxx;ftag=2d8ac-e57529;lr=on&gt;..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..CSeq: 27264 BYE..Max-Forwards: 70..User-Agent: X-Lite release 1<br> &nbsp; 105x..Content-Length: 0....<br> <br> U 2006/06/30 21:13:33.997886 70.xxx.xxx.xxx:1024 -&gt; 68.xxx.xxx.xxx:5060<br> &nbsp; BYE sip:202@70.xxx.xxx.xxx:5062 SIP/2.0..Via: SIP/2.0/UDP 70.xxx.xxx.xxx:5060;rport;branch=z9hG4bK6DCE6FB5347E4C64B528E78857E75918..From: &lt;sip:200@test.com<br> &nbsp; &gt;;tag=4197719146..To: CIO &lt;sip:202@test.com&gt;;tag=2d8ac-e57529..Contact: &lt;sip:200@70.xxx.xxx.xxx:5060&gt;..Route:
 &lt;sip:68.xxx.xx<br> &nbsp; x.xxx;ftag=2d8ac-e57529;lr=on&gt;..Call-ID: 7b304ac5-59d54-c0a814d0@test.com..CSeq: 27264 BYE..Max-Forwards: 70..User-Agent: X-Lite release 1<br> &nbsp; 105x..Content-Length: 0....<br> <br> <br> <br> <br> <br> <br> <br><b><i>Bogdan-Andrei Iancu &lt;bogdan@voice-system.ro&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> try something like:<br><br>if<br> (method=="BYE" || method=="CANCEL") {<br>  unforce_rtp_proxy();<br>  if (method=="CANCEL")<br> t_relay();<br>  exit;<br> } <br><br>be doing this you let the BYE to reach the loose_route and be properly <br>routed.<br><br>regards,<br>bogdan<br><br><br> </blockquote><br><p>&#32;
                <hr size=1>Want to be your own boss? Learn how on <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index"> Yahoo! Small Business.</a>