[OpenSIPS-Users] How can I change/set Caller ID to "anonymous" and alter caller ID

Sujeev support1 at meewadaya.com
Sun Aug 29 06:37:35 CEST 2010


Hello Zahid,
Thank you!
I followed your example and I use "anonymous calls" example for both
altering Caller ID and set Anonymous feature.

I did this for alter/modify caller ID and It works fine!
------
if ($avp(s:did)) {
if(is_present_hf("Remote-Party-ID"))
{
remove_hf("Remote-Party-ID");
}
if(is_present_hf("Privacy"))
{
remove_hf("Privacy");
}
uac_replace_from("$avp(s:did)","");
avp_delete("$avp(s:did)");
};
-------
Do you think this method is safe?

On Sun, Aug 29, 2010 at 10:56 AM, Zahid Mehmood <zm23 at columbia.edu> wrote:

> HI Sujeev,
>   try this in place of your append_hf statement.
>
>                if(is_present_hf("Remote-Party-ID"))
>                {
>                        remove_hf("Remote-Party-ID");
>                }
>                if(is_present_hf("Privacy"))
>                {
>                        remove_hf("Privacy");
>                }
>
>  uac_replace_from("Anonymous","sip:anonymous at anonymous.invalid");
>
> Hope this helps with the anonymous calls.
>
> If your gateway supports Remote-Party-ID header then you can play with the
> append_rpid_hf functions (
> http://www.opensips.org/html/docs/modules/1.6.x/auth.html#append-rpid-hf-no-params).
>  Alternately you may set p-asserted-id header based on the caller number.
>
> --
> Zahid
>
>
> On Aug 28, 2010, at 10:58 PM, Sujeev wrote:
>
> > Hello list,
> > I've a small problem. I have to set caller ID as "anonymous" before I
> send calls to one of my international termination provider. also we have
> 1500 SIP devices and those devices belongs to 10 departments in my
> office(each department has 150 ATAs). each department has dedicated DID
> number for inbound calls. lets say "Account" department own DID 45610299.
> When the Account staff make calls to PSTN network I want to set Caller ID as
> 45610299 for those calls. I just want to know how to set/alter caller ID
> before send to SIP gateway (I've done other parts).
> >
> > I did this for "Anonymous";
> >
> > --------
> > if (method=="INVITE") {
> >       if ($avp(s:hidecli)) {
> >
> append_hf("<anonymous>;party=calling;id-type=subscriber;privacy=off;screen=no\r\n");
> >               avp_delete("$avp(s:hidecli)");
> >       };
> > };
> > --------
> > but this doesn't work.
> >
> > Thank you!
> >
> > Sujeev
> > <ATT00001..txt>
>
>
> _______________________________________________
> 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/20100829/cea0d92a/attachment.htm 


More information about the Users mailing list