[Freeswitch-users] Rewriting Remote Party ID

Brian West brian at freeswitch.org
Thu Mar 5 04:23:02 PST 2009


Well this depends on how you're placing the call.. if its a standard  
bridge you can on the A-Leg set "effective_caller_id_number=000$ 
{caller_id_number}" before you call bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:

> Dear list,
>
> I'd like to rewrite the number in the Remote Party ID header and  
> only in
> this header.
>
> ex: I'd like to prefix the caller  ID with a prefix code (000 in this
> example) in the  RPID header :
>
>        From: Anonymous<sip:anonymous at anonymous.invalid>;tag=1208367
>        Remote-Party-ID:
> <sip: 
> 123456 
> @10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling
>
> should become:
>        From: Anonymous<sip:anonymous at anonymous.invalid>;tag=1208367
>        Remote-Party-ID:
> <sip: 
> 000123456 
> @10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling
>
> But the From field should remain unchanged.
>
> And how to strip this prefix:
>        From: Anonymous<sip:anonymous at anonymous.invalid>;tag=1208367
>        Remote-Party-ID:
> <sip: 
> 000123456 
> @10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling
>
> should become:
>        From: Anonymous<sip:anonymous at anonymous.invalid>;tag=1208367
>        Remote-Party-ID:
> <sip: 
> 123456 
> @10.10.10.10:5062;user=phone>;privacy=full;screen=yes;party=calling
>
>
> regards.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090305/bd880b43/attachment.html 


More information about the Freeswitch-users mailing list