[OpenSIPS-Users] How can i use a pseudovariable or a avp in seturi or rewrite uri

ASHWINI NAIDU ashwini.naidu at gmail.com
Tue Sep 29 08:43:15 CEST 2009


Thanks Bogdan

On Tue, Sep 29, 2009 at 12:08 PM, Bogdan-Andrei Iancu <
bogdan at voice-system.ro> wrote:

> Hi ASHWINI,
>
> seturi / rewriteuri does not support pseudo variables, but you can do it
> writing directly in the RURI pseudo variable:
>    $ru = $avp(s:to_uri);
>
> Regards,
> Bogdan
>
> ASHWINI NAIDU wrote:
> > Hi al,
> >
> >     I want to use a *pseudo-variable or the avp as an argument to
> > seturi/rewriteuri*. an error is throwed if i use the pseudovariable of
> > avp.
> >
> > *Sep 29 13:49:03 rtp /sbin/opensips[7612]: ERROR:core:parse_uri: bad
> > uri,  state 0 parsed: <$avp> (4) / <$avp(s:to_uri)> (14)
> > Sep 29 13:49:03 rtp /sbin/opensips[7612]:
> > ERROR:core:parse_sip_msg_uri: bad uri <$avp(s:to_uri)>
> > Sep 29 13:49:03 rtp /sbin/opensips[7612]: ERROR:core:pv_get_ruri:
> > failed to parse the R-URI
> >
> > *
> > --
> > Thanking You,
> > Ashwini BR Naidu
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Thanking You,
Ashwini BR Naidu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090929/83db4a1e/attachment.htm 


More information about the Users mailing list