[SR-Users] Using Dispatcher Module From Mysql

Amit Nepal amit.n at phoenixinternet.net
Fri Jan 7 18:47:54 CET 2011


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"

  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;
                         };
                 };

-- 
Thank You
Amit Nepal





More information about the sr-users mailing list