[SR-Users] avpops question...
Daniel-Constantin Mierla
miconda at gmail.com
Mon Apr 28 10:30:36 CEST 2014
Hello,
set use_domain parameter for avpops:
http://kamailio.org/docs/modules/stable/modules/avpops.html#avpops.p.use_domain
then use
avp_db_load("$ru", ...)
Cheers,
Daniel
On 27/04/14 05:09, arun Jayaprakash wrote:
> Hello, I have a piece of code as follows:
>
> $avp(callfwdcount) = 0;
> $avp(dnumber) = $rU;
> $var(found) = 0;
> while($avp(callfwdcount) < 3) {
> if (avp_db_load("$avp(dnumber)", "$avp(callfwd_permanent)"))
> {
> .....
> $avp(dst_number) = $avp(callfwd_permanent); # SET THE CALL FORWARD TO
> NUMBER
>
> ....
> }
>
> Now this works if this is a single domain set up. I am running a
> multidomain set up and need to check the domain part to ( $rd ) and if
> there is match in the database with $rU and $rd then the forward to
> number needs to be set. Can someone let me know how this can be done?
>
> Thank you,
> Arun
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140428/b239663f/attachment.html>
More information about the sr-users
mailing list