[OpenSIPS-Users] Changing the "From" display name or URI in a reply

Ovidiu Sas osas at voipembedded.com
Mon Jan 28 17:47:18 CET 2013


One quick dirty hack would be to loop the REGISTER request:
 1. receive the original REGISTER request and modify the From header,
then relay the request back to yourself
 2. handle the received REGISTER request (from yourself) normally (by
calling save()).

This should do the trick.

Regards,
Ovidiu Sas

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

On Mon, Jan 28, 2013 at 11:41 AM, Pauba, Kevin L <KLPauba at west.com> wrote:
> Is there a way to change the From header’s display name in a reply to a
> client device?
>
> I have a client device that requires a particular string in the From header
> in the response from opensips to a REGISTER request.  I’ve tried
> uac_replace_from() and subst() but neither of them changed the header in the
> response sent from the save() function (in the registrar module).
>
> Short of enhancing the registrar module to accept a “from_uri” parameter
> (for my own private use), is there any other method to accomplish the same
> thing?
>
> Thanks in advance!



More information about the Users mailing list