[SR-Users] Using Dispatcher Module From Mysql

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 7 18:57:44 CET 2011


Hello,

On 1/7/11 6:47 PM, Amit Nepal wrote:
> Hi everyone,
>         Again stuck at the dispatcher module.Do anyone happen to have 
> a working config for kamailio with dispatcher list from mysql database ?
> if not can someone please guide me on this ?
>
> Do i need to pass module parameters for the column and the table names ?
>
> I have the following config :
>
> loadmodule "dispatcher.so"
have you set the db_url parameter for dispatcher module? If not, then 
dispatcher does not connect to database.

Cheers,
Daniel

>
>  if(uri=~"^sip:1[2-9][0-9]{9}@")
>                 {
>                 if(is_user_in("credentials","longdistance"))
>                         {
>                         #route(PSTN);
>                         #exit;
>                         ds_select_dst("1","8");
>                         forward();
>                         }
>                 else{
>                         sl_send_reply("403","No Permissions for Long 
> Distance calls");
>                         exit;
>                         };
>                 };
>

-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com




More information about the sr-users mailing list