Hi Binan, > As your opensips is just a LB, try u to deal 302 as normal response (unload > uac_redirect module). > and ofcourse undo last changes u did.
I already tried that one, but even without loading uac_redirect and doing any special things, the contact-line is being modified... There needs to be some trivial explanation for that... and since I still have the original problems with TCP/TLS/UDP mismatch, I'm getting more and more stressed... the setup needs to work this friday otherwise I'm in a lot of trouble ;) Aren't there any well tested and well working opensips routing scripts for this basic need "Load balancing *all* messages to a cluster of FreeSWITCH / Asterisk boxes" ? Of course I'm aware of Bogdan's load balancing howto, but that is just for the media part, not for the basic stuff like REGISTERs and so on... I tried to adjust his example script to my needs, but since I'm a total n00b, I've still serious issues with this script and went back to the generally working original script from the freeswitch wiki (http://wiki.freeswitch.org/wiki/OpenSIPS_configuration_for_2_or_more_FreeSWITCH_installs#Edit_opensips.cfg). Thanks again for your time Binan, I'm still hoping for the final insight on those issues :( The debug showing that it doesn't matter, if I load uac_redirect or not: U 17.17.17.245:7784 -> 222.222.222.222:5060 SIP/2.0 302 Moved Temporarily. Via: SIP/2.0/UDP 222.222.222.222;branch=z9hG4bKff3c.5df04c8.1. Via: SIP/2.0/UDP 13.13.13.66;received=13.13.13.66;rport=5060;branch=z9hG4bKD6KKStKSN0QQa. Record-Route: <sip:222.222.222.222;lr;ftag=7SUyrQKQ28m9p;did=6ef.46d6cb52>. From: "User B" <sip:[email protected]>;tag=7SUyrQKQ28m9p. To: <sip:[email protected]:7784;line=jxlhtxze>;tag=4cvgtshwoc. Call-ID: 1a82df2b-6632-1230-2c88-0016367615cd. CSeq: 32440752 INVITE. Contact: <sip:[email protected];user=phone>. Diversion: <sip:[email protected]:7784;line=jxlhtxze>;reason="unconditional". Content-Length: 0. . U 222.222.222.222:5060 -> 13.13.13.66:5060 SIP/2.0 302 Moved Temporarily. Via: SIP/2.0/UDP 13.13.13.66;received=13.13.13.66;rport=5060;branch=z9hG4bKD6KKStKSN0QQa. Record-Route: <sip:222.222.222.222;lr;ftag=7SUyrQKQ28m9p;did=6ef.46d6cb52>. From: "User B" <sip:[email protected]>;tag=7SUyrQKQ28m9p. To: <sip:[email protected]:7784;line=jxlhtxze>;tag=4cvgtshwoc. Call-ID: 1a82df2b-6632-1230-2c88-0016367615cd. CSeq: 32440752 INVITE. Contact: <sip:[email protected]:7784;user=phone>. Diversion: <sip:[email protected]:7784;line=jxlhtxze>;reason="unconditional". Content-Length: 0. Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|start|received udp request INVITE sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|log|source 13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|log|from sip:[email protected] Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|log|to sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;line=jxlhtxze uhcfse Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|log|originated from internal sources Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|log|added this server to the route set Aug 21 14:55:43 opensips opensips[17505]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|17.17.17.245:7784 Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|start|received external reply 302 Moved Temporarily Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|source 17.17.17.245:7784 Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|address in Via differs from source IP Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: Failure Route Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: 302 in Failure Route Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17510]: 1a82df2b-6632-1230-2c88-0016367615cd|start|received external reply 302 Moved Temporarily Aug 21 14:55:43 opensips opensips[17510]: 1a82df2b-6632-1230-2c88-0016367615cd|log|source 17.17.17.245:7784 Aug 21 14:55:43 opensips opensips[17510]: 1a82df2b-6632-1230-2c88-0016367615cd|log|address in Via differs from source IP Aug 21 14:55:43 opensips opensips[17510]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|start|received udp request ACK sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|source 13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|from sip:[email protected] Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|to sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;line=jxlhtxze uhcfse Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|originated from internal sources Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;line=jxlhtxze 234hjak Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;line=jxlhtxze ewiruwo Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|log|forwarding based on the route set Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;line=jxlhtxze asjdhakjdhak Aug 21 14:55:43 opensips opensips[17507]: 1a82df2b-6632-1230-2c88-0016367615cd|pass|17.17.17.245:7784 Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|start|received udp request INVITE sip:[email protected]:7784;user=phone Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|log|source 13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|log|from sip:[email protected] Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|log|to sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;user=phone uhcfse Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|log|originated from internal sources Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|log|added this server to the route set Aug 21 14:55:43 opensips opensips[17504]: 1a916eb6-6632-1230-2c88-0016367615cd|pass|17.17.17.245:7784 Aug 21 14:55:43 opensips opensips[17509]: 1a916eb6-6632-1230-2c88-0016367615cd|start|received external reply 404 Not Found Aug 21 14:55:43 opensips opensips[17509]: 1a916eb6-6632-1230-2c88-0016367615cd|log|source 17.17.17.245:7784 Aug 21 14:55:43 opensips opensips[17509]: 1a916eb6-6632-1230-2c88-0016367615cd|log|address in Via differs from source IP Aug 21 14:55:43 opensips opensips[17509]: 1a916eb6-6632-1230-2c88-0016367615cd|pass|13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17509]: 1a916eb6-6632-1230-2c88-0016367615cd|pass|JJJ: Failure Route Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|start|received udp request ACK sip:[email protected]:7784;user=phone Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|log|source 13.13.13.66:5060 Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|log|from sip:[email protected] Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|log|to sip:[email protected]:7784;line=jxlhtxze Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|pass|JJJ: RURI: sip:[email protected]:7784;user=phone uhcfse Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|log|originated from internal sources Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|log|added this server to the route set Aug 21 14:55:43 opensips opensips[17508]: 1a916eb6-6632-1230-2c88-0016367615cd|pass|17.17.17.245:7784 # grep -E "uac_redir|get_redir" opensips.cfg #loadmodule "uac_redirect.so" #modparam("uac_redirect", "default_filter", "accept") # modparam("uac_redirect", "deny_filter", NULL) # modparam("uac_redirect", "accept_filter", NULL) # modparam("uac_redirect", "acc_function", "acc_log_request") # modparam("uac_redirect", "acc_db_table", "acc") # if(get_redirects("*")) { routing script: [snip] route { # log the basic info regarding this call xlog("L_INFO", "$ci|start|received $oP request $rm $ou"); xlog("L_INFO", "$ci|log|source $si:$sp"); xlog("L_INFO", "$ci|log|from $fu"); xlog("L_INFO", "$ci|log|to $tu"); xlog("L_INFO", "$ci|pass|JJJ: RURI: $ru uhcfse"); [snip] failure_route[external_fault] { xlog("L_INFO", "$ci|pass|JJJ: Failure Route"); if (t_check_status("302")) { xlog("L_INFO", "$ci|pass|JJJ: 302 in Failure Route"); xlog("L_INFO", "$ci|pass|JJJ: RURI: $ru"); t_relay(); } } [end] _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
