[OpenSIPS-Users] t_replicate

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Oct 9 19:11:57 CEST 2008


Hi Helmut,

I think there is a confusion somewhere in what you are doing.

The first error (for t_replicate("sip:1.2.3.4:5060"); ) is actually 
coming from a t_relay() - see the fixup_t_relay1() function. And indeed, 
t_relay() accepts as param something like "proto:host:port" :
       http://www.opensips.org/html/docs/modules/devel/tm.html#trelay-1

Actually, t_replicate() takes as param a SIP URI:
        http://www.opensips.org/html/docs/modules/devel/tm.html#treplicate

My impression is that you are trying to use same param for both 
t_relay() and t_replicate(), but they expect different formats.

Regards,
Bogdan

Helmut Kuper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I use opensips 1.4.2-notls (i386/linux) and got a problem with
> t_replicate function.
>
> My config is
>
> t_replicate("sip:1.2.3.4:5060");
>
> When opensips startsup I get this Error:
>
>
> Oct  9 16:38:03 [4245] ERROR:tm:parse_phostport: bad protocol in
> sip:1.2.3.4:5062
> Oct  9 16:38:03 [4245] CRITICAL:tm:fixup_phostport2proxy: invalid
> parameter <sip:1.2.3.4:5060>
> Oct  9 16:38:03 [4245] ERROR:tm:fixup_t_relay1: param is neither flag,
> nor OBP <sip:1.2.3.4:5060>
> Oct  9 16:38:03 [4245] ERROR:core:fix_actions: fixing failed (code=-6)
> at cfg line 903
> Oct  9 16:38:03 [4245] ERROR:core:main: failed to fix configuration with
> err code -6
>
> But when I use "t_replicate("udp:1.2.3.4:5060");" in config opensips
> starts up, but when line is executed in script it says:
>
> Oct  9 16:49:15 [4304] ERROR:core:parse_uri: bad uri,  state 0 parsed:
> <udp:> (4) / <udp:1.2.3.4:5060> (16)
> Oct  9 16:49:15 [4304] ERROR:tm:uri2proxy: bad_uri: udp:1.2.3.4:5060
> Oct  9 16:49:15 [4304] ERROR:tm:t_forward_nonack: failure to add branches
>
> Any ideas? Looks like a bug.
>
> regards
> Helmut
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkjuGi0ACgkQ4tZeNddg3dzBbQCgvuFcUJliQQEPuoxRM4L+ksaF
> 2sEAn2YZXaHFPdbwITDtcCEpVW/b10yt
> =iuPp
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list