So if value of rpid is "3343111" in database for
subsriber sip:joe@cxcc.com, the rpid header will be
<sip:3343111;user=phone>;party=calling.....;privacy=off
3) You now need to call append_rpid_hf() in ser.cfg ,
BUT you must make sure that it is called after a
INVITE has been authenticated.
In the standard ser.cfg, you see the REGISTERS are
authenticated. But to append the RPID, authentication
method has to be called so that the RPID value can be
loaded from database. What this means is that you need
code like this:
if (method == INVITE) {
if (uri =~ sip:9[0-9]*@.") { # calls to PSTN w/
prefix 9
if (!proxy_authorize("","subscriber"))
proxy_challenge("","0");
break;
}
append_rpid_hf();
consume_credentials();
.
.
rewritehost(...)
}
}
--- Java Rockx <javarockx(a)yahoo.com> wrote:
Hi All.
I'm struggling to get ser to insert the
Remote-Party-ID header.
What is the trick to enable this in ser.cfg?
I'm using ser-0.9
Regards,
Paul
--- Richard <richard(a)o-matrix.org> wrote:
You can add "privacy=full" in the
remote-party-id
field. Receiving sip ua
should block the caller id.
> -----Original Message-----
> From: Java Rockx [mailto:javarockx@yahoo.com]
> Sent: Thursday, January 20, 2005 1:42 PM
> To: Richard; 'ser users'
> Subject: RE: [Serusers] Seeking Advise With
Caller ID Block
>
> Richard,
>
> Would the use of rpid allow me to enable caller
ID blocking on demand
(aka,
> only for certain users
> - based on a row in usr_preferences in mysql)?
>
> Regards,
> Paul
>
> --- Richard <richard(a)o-matrix.org> wrote:
>
> > you can use remote-party-id header field if
the sip ua supports it.
> >
> > > -----Original Message-----
> > > From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org]
> On
> > > Behalf Of Java Rockx
> > > Sent: Thursday, January 20, 2005 11:26 AM
> > > To: ser users
> > > Subject: [Serusers] Seeking Advise With
Caller ID Block
> > >
> > > Hi All.
> > >
> > > I'd like to implement caller ID blocking at
the SIP proxy.
> > >
> > > Can I simply use textops replace() to
rewrite the "From:"
header to
> > > something like the following
> > > without breaking the SIP transaction?
> > >
> > > From: "Anonymous" <sip:my.domain.com>
> > >
> > > Using this in my ser.cfg:
> > >
> > > replace("^From:(.*)sip:(.*)@" , "From:
\"Anonymous\" <sip:");
> > >
> > >
> > > Regards,
> > > Paul
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - Find what you need with new
enhanced search.
_______________________________________________
> > > Serusers mailing list
> > > serusers(a)lists.iptel.org
> > >
http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
>
http://my.yahoo.com
__________________________________
Do you Yahoo!?
All your favorites on one personal page Try My
Yahoo!
http://my.yahoo.com
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org