[OpenSIPS-Users] Need some suggestion to modify From header Username of Invite message .
Alain Bieuzent
alain.bieuzent at free.fr
Wed Jul 26 10:22:16 UTC 2023
Hi Sasmita,
Look at : https://opensips.org/html/docs/modules/1.8.x/uac#id293893
...
# replace both display and uri
uac_replace_from("$avp(display)","$avp(uri)");
# replace only display and do not touch uri
uac_replace_from("batman","");
# remove display and replace uri
uac_replace_from("",sip:robin at gotham.org);
# remove display and do not touch uri
uac_replace_from("","");
...
Regards
De : Users <users-bounces at lists.opensips.org> au nom de Sasmita Panda <spanda at 3clogic.com>
Répondre à : OpenSIPS users mailling list <users at lists.opensips.org>
Date : mercredi 26 juillet 2023 à 12:13
À : OpenSIPS users mailling list <users at lists.opensips.org>
Objet : Re: [OpenSIPS-Users] Need some suggestion to modify From header Username of Invite message .
To concise this .
From: "Repair 1 1222" <sip:122262;phone-context=cdp.udp at x.x.x.x;user=phone>;tag=7bcc41abac561dec
This is the format of the form header . I wanted to modify the username part only to have the number only 122262 .
How is this possible ?
Thanks & Regards
Sasmita Panda
Senior Network Testing and Software Engineer
3CLogic , ph:07827611765
On Wed, Jul 26, 2023 at 3:21 PM Sasmita Panda <spanda at 3clogic.com> wrote:
Hi ,
On opensips 1.11 is there a way I can modify from header username part on Invite message ?
Please do help if possible .
Thanks & Regards
Sasmita Panda
Senior Network Testing and Software Engineer
3CLogic , ph:07827611765
_______________________________________________ Users mailing list Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230726/9ac353b7/attachment.html>
More information about the Users
mailing list