[OpenSER-Users] Obtaining the domain of "Refer-to" URI
Iñaki Baz Castillo
ibc at in.ilimit.es
Mon Jan 21 09:39:54 CET 2008
On Sunday 20 January 2008 21:56:57 Juha Heinanen wrote:
> Iñaki Baz Castillo writes:
> > It could be nice if this would work:
> >
> > is_domain_local($(hdr(P-Preferred-Identity){uri.host})) {
> > route(4) ; Auth route
> > }
> >
> > But unfortunatelly it doesn't work since it's not a variable
> > containing just:
> > sip:user at domain
> > but:
> > "Display name" <sip:user at domain>
>
> i remember adding pvars for some ppi header components.
I didn't know it, thanks!
There are:
$pu - reference to URI in request's P-Preferred-Identity heade
$pU - reference to user in request's P-Preferred-Identity header
$pd - reference to domain in request's P-Preferred-Identity header
$pn - reference to Display Name in request's P-Preferred-Identity header
:)
--
Iñaki Baz Castillo
ibc at in.ilimit.es
More information about the Users
mailing list