the first one works great!

Thanks

On Feb 4, 2008 5:00 PM, Daniel-Constantin Mierla <daniel@voice-system.ro> wrote:
Hello,

On 02/04/08 23:55, Mouncif Benniane wrote:
> my query looks like this:
>
> avp_db_query("SELECT prefix,grp_id,priority,custid,did,ip,port FROM
> table WHERE
> prefix='$rU'","$avp(s:prefix);$avp(s:grp_id);$avp(s:priority);$avp(s:custid);$avp(s:did);$avp(s:ip);$avp(s:port)")
>
> how Do I use $ru = ....  ?
$ru = "sip:"+$rU + "@" + $avp(s:ip) + ":" + $avp(s:port);

or

pv_printf($ru, "sip:$rU@$avp(s:ip):$avp(s:port)");

Cheers,
Daniel

>
> Thanks
>
>
>
>
> On Feb 4, 2008 12:51 PM, Iņaki Baz Castillo <ibc@in.ilimit.es
> <mailto:ibc@in.ilimit.es>> wrote:
>
>     On Monday 04 February 2008 18:24:17 Mouncif Benniane wrote:
>     > How Do I re-write the IP, Port  of Request URI using avp_pushto() ?
>
>     Why do you want to use "avp_pushto()"? why not using the following?
>
>      $ru = ....
>
>     --
>     Iņaki Baz Castillo
>     ibc@in.ilimit.es <mailto:ibc@in.ilimit.es>
>
>     _______________________________________________
>     Users mailing list
>     Users@lists.openser.org <mailto:Users@lists.openser.org>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>