[Kamailio-Users] call forward problem

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 3 10:30:52 CEST 2008


Hello,

On 08/30/08 16:53, muhammad akl wrote:
> 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)
just check if the origin is the same as destination and reply something 
like not found or so.

Cheers,
Daniel

>
> 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 ?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the Users mailing list