Published on iptel.org (http://www.iptel.org)

speeddial

By greger
Created 2006-11-26 10:19

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".

Where can I post a question about this module? [6]
1.6.2. How can I report a bug? [7]
support@voice-system.ro [8]> or, if you want to keep the mail private, send it to .

Remember: first at all, check if your question was already answered on one of SER mailing lists:

  • serusers mailing list [10]

  • serdev mailing list [11]

support@voice-system.ro [12]>