Hello,
I think that handle_ruri_alias() is consuming from the end of the
parameters, so you can execute the function couple of times.
Ideally, the alias parameter should be only once there, the second one
should be useless, at that point record-route/route headers should be
enough.
Cheers,
Daniel
On 28.06.18 13:25, Borislav Gergov wrote:
Hello, what is the proper way for kamailio nathelper
module to handle
multiple aliases in the request . For example We have ACK message that
looped in the kamailio because is not forward to user phone:
ACK
sip:xxxxxx@10.10.10.32:38416;alias=192.168.129.135~5060~1;alias=192.168.205.32~38416~1
SIP/2.0
Via: SIP/2.0/UDP
192.168.146.174:46248;branch=z9hG4bK-524287-1---5b14eec905adf6ce
Max-Forwards: 70
Route: <sip:mo@192.168.129.133
<mailto:sip%3Amo@192.168.129.133>;lr=on;ftag=c7d62d68;did=8a1.bcf2;rm=8>
Route: <sip:mo@192.168.129.135
<mailto:sip%3Amo@192.168.129.135>;lr=on;ftag=c7d62d68;did=8a1.121>
Route: <sip:mt@192.168.129.135
<mailto:sip%3Amt@192.168.129.135>;lr=on;ftag=c7d62d68;did=8a1.221>
Route: <sip:mt@192.168.129.133
<mailto:sip%3Amt@192.168.129.133>;lr=on;ftag=c7d62d68;did=8a1.ccf2;rm=7>
Contact: <sip:yyyyy@10.153.146.174:46248;transport=UDP>
To: <sip:xxxxxx@domain.net
<mailto:sip%3Axxxxxx@domain.net>;transport=UDP>;tag=dd9aaf1c
From: <sip:yyyyy@domain.net
<mailto:sip%3Ayyyyy@domain.net>;transport=UDP>;tag=c7d62d68
Call-ID: 5Zogf8chhpYlQRdpaZM4CA..
CSeq: 2 ACK
User-Agent: Softphone
Content-Length: 0
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference --
www.kamailioworld.com