Standard-dep
This module provides on-server speed dial facilities. An user can store records consisting of pairs short numbers (2 digits) and SIP addresses into a table of SERi [1]. Then it can dial the two digits whenever he wants to call the SIP address associated with those digits.
Elena-Ramona Modroiu
i [2]. Then it can dial the two digits whenever he wants to call the SIP address associated with those digits.
i [3] module.
i [4]_fifo" # ------------------ module loading ---------------------------------- loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so" loadmodule "/usr/local/lib/ser/modules/textops.so" loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/speeddial.so" # ----------------- setting module-specific parameters --------------- # -- usrloc params -- modparam("usrloc", "db_mode", 0) # -- rr params -- # add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1) # ------------------------- request routing logic ------------------- # main routing logic route{ # initial sanity checks if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= max_len ) { sl_send_reply("513", "Message too big"); break; }; if (!method=="REGISTER") record_route(); if (loose_route()) { if (!t_relay()) { sl_reply_error(); }; break; }; if (!uri==myself) { if (!t_relay()) { sl_reply_error(); }; break; }; if (uri==myself) { if (method=="REGISTER") { save("location"); break; }; if(uri=~"sip:[0-9]{2}@.*") sd_lookup("speeddial"); lookup("aliases"); if (!uri==myself) { if (!t_relay()) { sl_reply_error(); }; break; }; if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; }; if (!t_relay()) { sl_reply_error(); }; }
i [5] that will be use to replace the short dial URI.
Default value is "new_uri".
|
support@voice-system.ro [8]> or,
if you want to keep the mail private, send it to
<ramona@voice-system.ro [9]>.
Remember: first at all, check if your question was already answered on one of SER mailing lists:
|
| support@voice-system.ro [12]> |
Links:
[1] http://www.iptel.org/glossary/term/244
[2] http://www.iptel.org/glossary/term/244
[3] http://www.iptel.org/glossary/term/70
[4] http://www.iptel.org/glossary/term/244
[5] http://www.iptel.org/glossary#term81
[6] http://www.iptel.org/speeddial.html#id2988440
[7] http://www.iptel.org/speeddial.html#id2984166
[8] http://www.iptel.org/mailto:support@voice-system.ro
[9] http://www.iptel.org/mailto:ramona@voice-system.ro
[10] http://mail.iptel.org/mailman/listinfo/serusers
[11] http://mail.iptel.org/mailman/listinfo/serdev
[12] http://www.iptel.org/mailto:support@voice-system.ro