Hi Iñaki, See my previous email - t_relay will internally fail (due bad hostname) and it will automatically generate a negative reply, returning "true" in script.
Regards, Bogdan Iñaki Baz Castillo wrote: > Hi, perhaps I missing something but AFAIK if I do: > > rewritehostport("kk.kkkkkkkkkkaaa.bad"); > append_branch(); > xlog("L_INFO", "1111111111\n"); > if (!t_relay()) { > xlog("L_ERROR","222222222222\n"); > } > xlog("L_ERROR","3333333333\n"); > > Then, since "kk.kkkkkkkkkkaaa.bad" is a non existing domain I expect to > see "222222222" because t_relay should reply a negative value: > -4 bad destination (unresolvable address) > > But the fact is that I don't see that "2222222222", neither "3333333333" but > this error: > > ---------- > May 29 10:38:32 [16795] CRITICAL:core:mk_proxy: could not resolve > hostname: "kk.kkkkkkkkkkaaa.bad" > May 29 10:38:32 [16795] ERROR:tm:uri2proxy: bad host name in URI > <sip:[EMAIL PROTECTED];transport=UDP;user=phone> > May 29 10:38:32 [16795] ERROR:tm:t_forward_nonack: failure to add branches > ----------- > > > Why? > > Thanks a lot. > > > > _______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users