Greetings,<br>
<br>
<br>
<br>
Sorry about the confusion, the Routing works perfectly with multiple<br>
addresses in one header. I think i have a better scenario now.<br>
<br>
<br>
<br>
So, i have this SBC with 2 IPs (212.13.40.205 and 212.13.40.209) where in<br>
INVITES i use uac_replace_from() and uac_replace_to(). Kamailio UAC’s<br>
module is set for “AUTO” restore.<br>
<br>
<br>
<br>
In this scenario, the original call arrives at Kamailio like this<br>
(Restore.pcap) :<br>
<br>
                From: 351211450093<br>
<br>
To : 351258064574<br>
<br>
<br>
<br>
<br>
<br>
The call is routed to my client and the packet leaves Kamailio like this<br>
(Restore.pcap) :<br>
<br>
                From: +351211450093<br>
<br>
To : +351258064574<br>
<br>
<br>
<br>
<br>
<br>
The info is stored in the “vst” and “vsf” parameters in Record-Route header<br>
 ( Note :  Kamailio has 2 IPs) (Restore.pcap):<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Later, i receive a BYE request from the client with To and From like this<br>
(Restore.pcap) :<br>
<br>
<br>
<br>
The To Header has “I2116446I_500” as user part which i think it’s still RFC<br>
compliant. Regarding this i couldn’t find anything proving that wrong.<br>
<br>
<br>
<br>
Here is where the problem  starts. If the auto restore is activated, the To<br>
header end result is malformed  (Restore.pcap) :<br>
<br>
<br>
<br>
If i deactivate the restore and a similar test, the headers are unchanged<br>
 (NotRestore.pcap):<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
I have a couple questions about this :<br>
<br>
                Are the vsf and vst alone enough to do a proper restore ?<br>
If not, what inputs does it take ?<br>
<br>
                Does the “AUTO” restore works if the client sends me a<br>
different user than i sent him ?<br>
<br>
<br>
<br>
Please find the captures mentioned in annex.<br>
<br>
<br>
<br>
Thanks a lot for your help.<br>
<br>
<br>
<br>
Best Regards,<br>
<br>
<br>
<br>
<br>
<br>
[image: g9telecom]<br>
<br>
*Duarte Rocha*<br>
Desenvolvimento de software<br>
T.: 351 211 450 050<br>
F.: 351 221 450 059<br>
www.g9telecom.pt<br>
<br>
[Download vCard] <http://public.g9telecom.pt/vCards/tec45er-duarte.vcf><br>
<br>
[image: certif]<br>
<br>
<br>
<br>
Esta mensagem (incluindo anexos) pode conter informação confidencial para<br>
uso exclusivo do destinatário. Se não for o destinatário pretendido não<br>
deverá usar, distribuir ou copiar este e-mail, devendo eliminá-lo e<br>
informar o emissor imediatamente. Obrigado.<br>
<br>
This message (including any attachments) may contain confidential<br>
information for the exclusive use of the recipient. If you are not the<br>
intended recipient, you should not use, distribute or copy this email, and<br>
you must delete it and inform the issuer immediately. Thank you.<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2079?email_source=notifications&email_token=ABO7UZLRF2BBZATSKRPIHCLQLYW3RA5CNFSM4I3EVLJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZMYYA#issuecomment-536005728">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMJUGI6EEQGD4BESP3QLYW3RANCNFSM4I3EVLJQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZNS3NWX5RRKKLTZDZ3QLYW3RA5CNFSM4I3EVLJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZMYYA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2079?email_source=notifications\u0026email_token=ABO7UZLRF2BBZATSKRPIHCLQLYW3RA5CNFSM4I3EVLJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZMYYA#issuecomment-536005728",
"url": "https://github.com/kamailio/kamailio/issues/2079?email_source=notifications\u0026email_token=ABO7UZLRF2BBZATSKRPIHCLQLYW3RA5CNFSM4I3EVLJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZMYYA#issuecomment-536005728",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>