[Kamailio-Users] uac_replace_from again
Daniel-Constantin Mierla
miconda at gmail.com
Wed Nov 4 17:11:20 CET 2009
On 04.11.2009 16:54 Uhr, olivier.taylor at gmail.com wrote:
> If you follow the thread, you will see that I was using :
>
> if (has_totag()) {
> if (loose_route()) {
> if (is_method("BYE")) {
> xlog("L_NOTICE", "------------------> LOOSE route");
> if (!t_relay())
> {
> sl_reply_error();
> }
> exit;
> }
> }
> }
>
>
> and not
> if(has_totag()){
> if(is_method("BYE")){
> xlog("L_NOTICE", "------------------> LOOSE route");
> }
> t_relay(); #relay all in-dialog messages (also BYEs)
> exit;
> }
>
>
> Wich was proposed by another user...
>
>
> Anyway, using that, I get :
>
> Nov 4 18:48:37 localhost /usr/local/sbin/kamailio[30514]:
> ------------------> LOOSE route
> Nov 4 18:48:38 localhost /usr/local/sbin/kamailio[30511]:
> ------------------> LOOSE route
> Nov 4 18:48:40 localhost /usr/local/sbin/kamailio[30514]:
> ------------------> LOOSE route
> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
> ERROR:core:udp_send: sendto(sock,0xa2b359d0,65564,0,0xa2af4484,16):
> Message too long(90)
What is the max datagram size in your system? Are you using freebsd?
'sysctl -a' to see all and search for inet or ipv4 and dgram or so ...
Cheers,
Daniel
> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
> ERROR:tm:msg_send: udp_send failed
> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
> ERROR:tm:t_forward_nonack: sending request failed
> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30516]:
> ------------------> LOOSE route
> Nov 4 18:48:48 localhost /usr/local/sbin/kamailio[30513]:
> ------------------> LOOSE route
> Nov 4 18:48:50 localhost /usr/local/sbin/kamailio[30513]:
> ------------------> LOOSE route
> Nov 4 18:48:52 localhost /usr/local/sbin/kamailio[30512]:
> ------------------> LOOSE route
>
>
>
>
> and so on...
>
> Then, using Loose-route doesn't help.
>
> I am sure I made a mistake somewhere, but I don't know where.
>
> In the previous mail you will find my full CFG
>
> kind regards,
>
> Olivier
>
> Iñaki Baz Castillo a écrit :
>> El Miércoles, 4 de Noviembre de 2009, olivier.taylor at gmail.com escribió:
>>
>>> dear Iñaki
>>>
>>> I have a server up and running at this time, my only problem is when I use
>>> uac_replace_from and receive a Bye from the callee. That's for another
>>> server.
>>> The default config doesn't help for that, or maybe I am stupid, that's
>>> another possibility :)
>>>
>>
>> Your code is not correct:
>>
>> if(has_totag()){
>> if(is_method("BYE")){
>> xlog("L_NOTICE", "------------------> LOOSE route");
>> }
>> t_relay(); #relay all in-dialog messages (also BYEs)
>> exit;
>> }
>>
>> You must use loose_route() before the t_relay(). If not the Route header are
>> not removed so you get a loop. This is well explained in the default config
>> file.
>>
>>
>>
>>
>>> your message is very helpfull, thanks,
>>>
>>
>> Thanks.
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--
Daniel-Constantin Mierla
* http://www.asipto.com/
More information about the Users
mailing list