[SR-Users] uac_replace_from(uri) alters display name

Sergiu Pojoga pojogas at gmail.com
Sun Nov 10 18:24:59 CET 2019


Hi Henning,

Happens in both versions below:

# kamcmd version
kamailio 5.1.9 (x86_64/linux) dc1216

# kamcmd version
kamailio 5.2.5 (x86_64/linux) e10d4f

Thanks,
--Sergiu

On Sun, Nov 10, 2019 at 12:08 PM Henning Westerholt <hw at skalatan.de> wrote:

> Hello Sergui,
>
> which version of Kamailio do you use? I did some enhancements in newer
> versions, also related to display names.
>
> Cheers,
>
> Henning
> Am 10.11.19 um 17:19 schrieb Sergiu Pojoga:
>
> Hi ppl,
>
> Need to replace origination carrier's domain with my own, so I do:
>
> branch_route[MANAGE_PSTN_IN_BRANCH] {
>    uac_replace_from("sip:$fU at mydomain.net");
> }
>
> The dialog-forming INVITE is relayed properly with ONLY the domain part
> being replaced.
>
> However, subsequent messages such as ACK and BYE have the From DISPLAY
> NAME (_uac_fdp) stripped off.
>
> Not that it affects real functionality in any known way (CLID is still
> good for callee), but curious if this is intentional or not, as
> *uac_replace_from(uri)* clearly states that: "*Replace in FROM header the
> URI part without altering the display name*"
>
> # kamcmd dlg.list
>         variables: {
>                 {
>                         _uac_fdpnew:
>                 }
>                 {
>                         _uac_fdp: "JOHN DOE"
>                 }
>                 {
>                         _uac_funew: sip:18661112222 at mydomain.net
>                 }
>                 {
>                         _uac_fu: sip:18661112222 at carrierdomain.net
>          }
>
> Thanks!
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Kamailio Merchandising - https://skalatan.de/merchandising/
> Kamailio services - https://skalatan.de/services
> Henning Westerholt - https://skalatan.de/blog/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191110/18f73c11/attachment.html>


More information about the sr-users mailing list