[sr-dev] uac_replace_from rare behaviour
David Escartin
descartin at sonoc.io
Tue Mar 3 18:09:55 CET 2020
Hello all
we just noticed an issue using this function
when we call it with 2 params (display and uri) and the SIP INVITE comes
with a From uri like
sip:anonymous at anonymous.invalid; tag=13133439191609, without <> delimiters,
then doing the uac replace in the ACK we have
2(14923) DEBUG: uac [replace.c:922]: replace_callback(): DOWNSTREAM
direction detected - replacing uri with the new uri
2(14923) DEBUG: uac [replace.c:943]: replace_callback(): Replace [
sip:anonymous at anonymous.invalid] with ["14254350027"
sip:14254350027 at 1.1.18.171]
2(14923) DEBUG: uac [replace.c:980]: replace_callback(): inserting display
["14254350027"]
And this is the From header replaced
From: sip:14254350027 at 1.1.18.171"14254350027" <>;tag=13133439191609
But if the call comes with a From header like
<sip:anonymous at anonymous.invalid>; tag=13133439191609
Then this is the From header replaced
2(19741) DEBUG: uac [replace.c:922]: replace_callback(): DOWNSTREAM
direction detected - replacing uri with the new uri
2(19741) DEBUG: uac [replace.c:943]: replace_callback(): Replace [
sip:1241342 at 1.1.18.171:5074] with ["14254350027" sip:14254350027 at 1.1.18.171]
2(19741) DEBUG: uac [replace.c:980]: replace_callback(): inserting display
["14254350027"]
From: "14254350027" <sip:14254350027 at 1.1.18.171>;tag=13133439191609
Were you aware of this kind of behaviour? If possible we will look for a
patch for this.
thanks a lot and regards
david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200303/cd952582/attachment.html>
More information about the sr-dev
mailing list