[Freeswitch-users] Rewriting Remote Party ID

rod kawarod at laposte.net
Tue Mar 10 07:30:28 PDT 2009


Hi Anthony,

thanks for this but I'd like to know if it's possible also to change 
only the caller_id_name and caller_id_number without modifying the from 
header.

ex: with the origination variables I get this
From: "test" <sip:1234 at 172.29.0.5>;tag=X4v4Kvt1B2DQF
Remote-Party-ID: "test" 
<sip:1234 at 172.29.0.5>;party=calling;screen=yes;privacy=off

and in the case of an anonymous call where from is like this on A-leg:
From: Anonymous 
<sip:anonymous at anonymous.invalid>;tag=z07m5db13cb-cbs450547977-o-5273-368294925

it is changed like this on B-leg:
From: "test" <sip:1234 at 172.29.0.5>;tag=X4v4Kvt1B2DQF

Moreover, in case of a bridged call, could you add the possibility to 
pass as is from header for an anonymous call.
Running current, I have this:
on A-leg:
From: 
"Anonymous"<sip:anonymous at anonymous.invalid;user=phone>;tag=c0a80101-fed0c
on B-leg:
From: "Anonymous" <sip:anonymous at 172.29.0.5>;tag=tpjD57U2pyrFN

and I'd like B-leg to match A-leg for anonymous call as stated in RFC, 
anonymous at anonymous.invalid is the proposed way to handle anonymous 
call, I'll add 50$ more for support of this last request.

thanks for your reactivity.
regards,
rod

Anthony Minessale wrote:
> Latest SVN:
>
> Send no extra caller id info:
> {sip_cid_type=none}sofia/default/user at example.com 
> <mailto:user at example.com>
>
> Send RPID (default)
> {sip_cid_type=rpid}sofia/default/user at example.com 
> <mailto:user at example.com>
>
> Send P-XXX-Identity
> {sip_cid_type=pid}sofia/default/user at example.com 
> <mailto:user at example.com>
>
> Send RPID with chosen content
> {sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/user at example.com 
> <mailto:user at example.com>
> [ Show » <http://jira.freeswitch.org/browse/BOUNTY-2> ]
> Anthony Minessale II 
> <http://jira.freeswitch.org/secure/ViewProfile.jspa?name=anthm> added 
> a comment - 10/Mar/09 07:59 AM Send no extra caller id info: 
> {sip_cid_type=none}sofia/default/user at example.com 
> <mailto:user at example.com> Send RPID (default) 
> {sip_cid_type=rpid}sofia/default/user at example.com 
> <mailto:user at example.com> Send P-XXX-Identity 
> {sip_cid_type=pid}sofia/default/user at example.com 
> <mailto:user at example.com> Send RPID with chosen content 
> {sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/user at example.com 
> <mailto:user at example.com>
>
> Send RPID with chosen content and privacy flags (+ delimited, none to 
> clear all flags)
> {sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234,origination_privacy=screen+hide_name+hide_number}sofia/default/user at example.com 
> <mailto:user at example.com>
>
>
> [ Show » <http://jira.freeswitch.org/browse/BOUNTY-2> ]
> Anthony Minessale II 
> <http://jira.freeswitch.org/secure/ViewProfile.jspa?name=anthm> added 
> a comment - 10/Mar/09 07:59 AM Send no extra caller id info: 
> {sip_cid_type=none}sofia/default/user at example.com 
> <mailto:user at example.com> Send RPID (default) 
> {sip_cid_type=rpid}sofia/default/user at example.com 
> <mailto:user at example.com> Send P-XXX-Identity 
> {sip_cid_type=pid}sofia/default/user at example.com 
> <mailto:user at example.com> Send RPID with chosen content 
> {sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/user at example.com 
> <mailto:user at example.com>
>
>
> Also the privacy app on the inbound leg controls the remaining 
> contents of the RPID and Privacy headers.
>
>
> On Tue, Mar 10, 2009 at 7:32 AM, kokoska rokoska 
> <kokoska.rokoska at post.cz <mailto:kokoska.rokoska at post.cz>> wrote:
>
>
>     rod napsal(a):
>     > ... if we could strip the RPID, we could write a new one, but It
>     > could be very convenient to get access to the fields in this
>     header for
>     > manipulation.
>     >
>
>     Yes, rod, this is exactly why I update bounty to $100 :-)
>
>     Thank you very much, rod, for support!
>
>     Best regards,
>
>     kokoska.rokoska
>
>
>     _______________________________________________
>     Freeswitch-users mailing list
>     Freeswitch-users at lists.freeswitch.org
>     <mailto:Freeswitch-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> -- 
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com 
> <mailto:MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com 
> <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org 
> <mailto:sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888 
> <http://iax:guest@conference.freeswitch.org/888>
> googletalk:conf+888 at conference.freeswitch.org 
> <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:213-799-1400
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>   




More information about the FreeSWITCH-users mailing list