[Kamailio-Users] call forward problem

muhammad akl muhammad.akl at gmail.com
Sat Aug 30 15:53:52 CEST 2008


hey all

after making call forward feature using avpops module and its exported
functions avp_db_load and avp_pushto

i have a problem :

assuming all calls to extension 12001 will be forwarded to extension 12008,
in opensers's database i have added the following :

username=12001

domain =mydomain

attribute = callfwd

value = sip:12008 at mydomain

type = 0

untill that every thing was fine and all calls comes to 12001 forward to
12008 without any problem , the problem comes from when i am using 12008 to
call 12001 it calls itself ( mean 12008)

so anyone can tell me what i have missed ?

i have configured my openser.cfg like this

in loaded modules section added

loadmodules "avpops.so"
>

in module parameter section added :

modparam("avpops", "avp_url", "mysql://openser:openserrw@localhost/openser")

modparam("avpops", "avp_table", "usr_preferences")


in Invite message handler added :



if(avp_db_load("$ru/username","$avp(s:callfwd)")) {

            avp_pushto("$ru", "$avp(s:callfwd)");

            route(1);

            exit;

        }

any suggestions ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080830/96261863/attachment.htm>


More information about the sr-users mailing list