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.
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to
whom it is addressed. Its contents may be protected by legal and/or professional
privilege. Should it be received by you in error please contact the sender at the above
quoted email address. Any unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any information
electronically transmitted and is not liable if the information contained in this
communication is not a proper and complete record of the message as transmitted by the
sender nor for any delay in its receipt.