Hi, Looking at the SIP trace, I can see you do serial forking - you do set the RTProxy for the first branch (sending to 192.168.10.19:5060) and probably you do it again in failure route when you create the second branch.
You cannot call force_rtp_proxy() twice for the same message - this is why you get the double IPs. Regards, Bogdan troxlinux wrote: > 2009/4/13 Bogdan-Andrei Iancu <[email protected]>: > >> Hi, >> > > Hi Bogdan > > >> But the INVITE seams to go twice through some NAT logic as I see the >> "a=nortpproxy:yes" header twice. Can you upload somewhere the entire SIP >> trace (inbound and outbound part) ? >> >> > > do I see that the opensips writes me twice the address ip in the sdp, > like I can I remove this? > > route[10] { > #from an internal domain -> inbound > #Native SIP destinations are handled using the location table > append_hf("P-hint: inbound->inbound \r\n"); > if (uri=~"^sip:9[0-9]*@") { > if (is_user_in("credentials", "local")){ > route(4); > exit; > } else { > sl_send_reply("403", "No tienes permiso para llamadas > locales"); > exit; > }; > }; > > if (!lookup("location")) { > xlog("L_INFO","$C(rx)404 User Not Found $C(xx)\n"); > if (does_uri_exist()) { > revert_uri(); > prefix("u"); > rewritehostport("192.168.10.3:5070"); > route(1); > } else { > sl_send_reply("404", "Not Found"); > exit; > }; > sl_send_reply("404", "Not Found"); > exit; > }; > > route(1); > } > > route[11] { > # from an internal domain -> outbound > # Simply route the call outbound using DNS search > append_hf("P-hint: inbound->outbound \r\n"); > route(1); > } > route[12] { > # From an external domain -> inbound > # Verify aliases, if found replace R-URI. > lookup("aliases"); > if (!lookup("location")) { > xlog("L_INFO", "$C(rx)404 Lo siento usuario no encontrado $C(xx)\n"); > sl_send_reply("404", "Not Found"); > exit; > }; > route(1); > } > route[13] { > #From an external domain outbound > #we are not accepting these calls > append_hf("P-hint: outbound->inbound \r\n"); > sl_send_reply("403", "Forbidden"); > exit; > } > > > route[4] { > rewritehostport("192.168.10.3:5070"); > route(1); > > > > I attach the sip log > > regardss > > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
