Hello,
On 5/17/10 7:49 AM, Juha Heinanen wrote:
Juha Heinanen writes:
another strange thing is, why the branch route is executed only once (for the first t_relay) although the script is calling t_relay() two times and t_on_branch() is called before each call?
this was my mistake in the script (there was condition that prevented the log message to be printed). branch route is correctly called both times.
still the main issue persists, i.e., how to get rid of the first branch to which relaying had failed. even if i add clear_branches() call to next_gw() call, the first branch is still there. as result the first gw to which relaying fails tried twice (first time when it is alone in the destination set and second time when it in the destination set together with the second gw).
is a second call of next_gw() in route block always appending a branch? or is updating the r-uri/dst-uri?
In this case when t_relay failed, transaction is created, probably the first branch is set in transaction structure, but to see what is its states, need to get into sources...
Cheers, Daniel
below is new syslog output, where log in branch route is now always active.
-- juha
May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: lcr [lcr_mod.c:1532]: added gw_uri_avp<1|1|00||lohi.tutpro.com|5060||1|320> with weight<3765048> May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: lcr [lcr_mod.c:1532]: added gw_uri_avp<1|1|00||sars.tutpro.com|||2|64> with weight<2645835> May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: Relaying INVITEsip:00358407058055@sars.tutpro.com;transport=tcp to gw May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: tm [ut.h:295]: ERROR: uri2dst: failed to resolve "sars.tutpro.com" :unresolvable A or AAAA request (-7) May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: tm [t_fwd.c:1391]: ERROR: t_forward_nonack: failure to add branches May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: Relaying failed with result -478 May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: lcr [lcr_mod.c:1951]: appending branchsip:00358407058055@lohi.tutpro.com:5060 May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: found next gw<Contact: sip:00358407058055@sars.tutpro.com;transport=tcp, sip:00358407058055@lohi.tutpro.com:5060> May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: Relaying INVITEsip:00358407058055@sars.tutpro.com;transport=tcp to gw May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: tm [ut.h:295]: ERROR: uri2dst: failed to resolve "sars.tutpro.com" :unresolvable A or AAAA request (-7) May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: Relaying INVITEsip:00358407058055@lohi.tutpro.com:5060 to gw May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: Relaying succeeded with result 1 May 17 08:37:32 localhost /usr/sbin/sip-proxy[14394]: WARNING: No more gws for INVITEsip:00358407058055@sars.tutpro.com;transport=tcp fromsip:test@test.fi
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev