How can i use a pseudovariable or a avp in seturi or rewrite uri

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How can i use a pseudovariable or a avp in seturi or rewrite uri

ASHWINI NAIDU
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: How can i use a pseudovariable or a avp in seturi or rewrite uri

Bogdan-Andrei Iancu
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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: How can i use a pseudovariable or a avp in seturi or rewrite uri

ASHWINI NAIDU
Thanks Bogdan

On Tue, Sep 29, 2009 at 12:08 PM, Bogdan-Andrei Iancu <[hidden email]> 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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users