[SR-Users] How to insert user=phone header INVITE TO FROM

Henning Westerholt hw at skalatan.de
Wed Aug 18 08:55:32 CEST 2021


Hello,

look at the uac module – there are uac_replace_from/to function to achieve this.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of César Matheus
Sent: Tuesday, August 17, 2021 10:26 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] How to insert user=phone header INVITE TO FROM

Hi list.

mY provider asks me to insert user = phone in my header. because it requires to receive my INVITE with user = phone in TO and FROM

However, I add the user = phone in my configuration like this:
$ ru = "sip:" + $ rU + "@" + $ sel (cfg_get.pstn1.gw_ip) + ":"
                                                                         + $ sel (cfg_get.pstn1.gw_port) + "; user = phone";

but only the INVITE appears, not in the TO or FROM.

INVITE sip: 09872323232 at X.Y.X.K<mailto:09872323232 at X.Y.X.K>: 5060; user = phone SIP / 2.0

From: <sip: XXXXYYYYY at 172.20.12.4<mailto:XXXXYYYYY at 172.20.12.4>: 5060>; tag = 15552444533876
To: <sip: 09872323232 at 172.20.12.2<mailto:09872323232 at 172.20.12.2>: 5060>

You can help me solve it.

Thanks.

--
César Matheus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210818/d9bad03b/attachment.htm>


More information about the sr-users mailing list