[OpenSIPS-Users] opensips+asterisk: signalling not working?

Stefano Sasso stesasso at gmail.com
Wed Oct 6 14:29:08 CEST 2010


2010/10/6 Stefano Sasso <stesasso at gmail.com>:
> 2010/10/6 Vallimamod ABDULLAH <vallimamod.abdullah at imtelecom.fr>:
>>> Can this be resolved using advertised_address in opensips? or there is
>>> other options?
>>
>> Then you should use record_route_preset with the public ip at the beginning of your script.
>
> thank you for the hint.
> I now have record_route_preset, and now the ACK from UAC is sent to
> the opensips public ip.
> but the problem persists, and it seems the ACK never reaches the
> asterisk server, that still have in logs the same sad message.

maybe I found the problem...
I added the following line after if(has_totag()) {
if(loose_route())... and before the route(1):
xlog("[LOOSE_ROUTE] from $si:$sp method $rm SET_DESTINATION $du");
the $du should be the "rewritten" destination, changed by loose_route.
in opensips log I found:

Oct  6 14:24:35 TDCVIRX09 /usr/local/sbin/opensips[30869]:
[LOOSE_ROUTE] from 94.33.32.xxx:55484 method ACK SET_DESTINATION
sip:77.238.yy.zz:5060;lr;ftag=1a4ab330;did=ed.36ed132

(where 77.238.... is the public ip of opensips), so it seems that
opensips tries to redirect the ACK to itself (a loop?)

how can I avoid this?

thanks

-- 
Stefano Sasso
http://stefano.dscnet.org/



More information about the Users mailing list