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:[email protected]);

# remove display and do not touch uri

uac_replace_from("","");

...

                               

Regards

 

De : Users <[email protected]> au nom de Sasmita Panda 
<[email protected]>
Répondre à : OpenSIPS users mailling list <[email protected]>
Date : mercredi 26 juillet 2023 à 12:13
À : OpenSIPS users mailling list <[email protected]>
Objet : Re: [OpenSIPS-Users] Need some suggestion to modify From header 
Username of Invite message .

 

To concise this . 

 

From: "Repair 1 1222" 
<sip:122262;[email protected];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 <[email protected]> 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 
[email protected] 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to