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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Sep 29 08:38:47 CEST 2009


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
>   




More information about the Users mailing list