[sr-dev] appending a new branch in route block

Juha Heinanen jh at tutpro.com
Mon May 17 07:49:01 CEST 2010


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).

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 INVITE <sip:00358407058055 at 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 branch <sip:00358407058055 at lohi.tutpro.com:5060>
May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: ERROR: found next gw <Contact: sip:00358407058055 at sars.tutpro.com;transport=tcp, sip:00358407058055 at lohi.tutpro.com:5060>
May 17 08:37:27 localhost /usr/sbin/sip-proxy[14350]: INFO: Relaying INVITE <sip:00358407058055 at 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 INVITE <sip:00358407058055 at 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 INVITE <sip:00358407058055 at sars.tutpro.com;transport=tcp> from <sip:test at test.fi>



More information about the sr-dev mailing list