Hello.
I would really appreciate if someone could show me an
example of how a speed-dialing entry should be added to the ser mysql database?
E.g. If user 2092 dials 3 it rings user 3500.
I tried : insert into usr_preferences (username, domain, sd_username,
sd_domain, new_uri) values
(“2092”, “x.x.x.x”, “3500”,
“x.x.x.x”, “3”)
where x.x.x.x = ser address
I have the following in my ser.cfg:
loadmodule “/usr/local/lib/ser/modules/speeddial.so”
modparam(“speeddial”, “db_url”, “mysql://root:password@localhost/ser”)
modparam(“speeddial”, “user_column”, “userid”)
modparam(“speeddial”, “sd_user_column”, “short_user”)
modparam(“speeddial”, “sd_domain_column”, “short_domain”)
modparam(“speeddial”, “new_uri_column”, “real_uri”)
if ((method==”INVITE”)
&& (uri=~”^sip:[0-9]{2}@.*”)){
sd_lookup(“speed
dial”);
};
I got a 404 not found, but its probably
because I didn’t create the entry properly in the mysql database.
If someone could show me an example
that would be great.
Many thanks.