<DIV>Hi<BR>I am still having this problem when I cancel calls made to every user who is in voicemail group, if not, 487 is generated in acc, please see the references in: <A href="http://lists.iptel.org/pipermail/serusers/2004-September/011218.htmlç">http://lists.iptel.org/pipermail/serusers/2004-September/011218.htmlç</A></DIV>
<DIV> </DIV>
<DIV>thanks<BR>Rafael</DIV>
<DIV> </DIV>
<DIV>PS: cfg:</DIV>
<DIV># ----------- global configuration parameters ------------------------</DIV>
<DIV>#debug=3 # debug level (cmd line: -dddddddddd)<BR>#fork=yes<BR>#log_stderror=no # (cmd line: -E)</DIV>
<DIV>#/* Uncomment these lines to enter debugging mode<BR>debug=9<BR>fork=yes<BR>log_stderror=yes<BR>#*/</DIV>
<DIV>listen=xxx<BR>listen=xxx<BR>port=5060</DIV>
<DIV># hostname matching an alias will satisfy the condition uri==myself".<BR>alias=xxx<BR>alias=xxx</DIV>
<DIV>check_via=no # (cmd. line: -v)<BR>dns=no # (cmd. line: -r)<BR>rev_dns=no # (cmd. line: -R)<BR>children=4<BR>fifo="/tmp/ser_fifo"</DIV>
<DIV># ------------------ module loading ----------------------------------<BR>loadmodule "/usr/local/lib/ser/modules/mysql.so"<BR>loadmodule "/usr/local/lib/ser/modules/sl.so"<BR>loadmodule "/usr/local/lib/ser/modules/tm.so"<BR>loadmodule "/usr/local/lib/ser/modules/rr.so"<BR>loadmodule "/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule "/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule "/usr/local/lib/ser/modules/registrar.so"<BR>loadmodule "/usr/local/lib/ser/modules/group.so"<BR>loadmodule "/usr/local/lib/ser/modules/uri.so"<BR>loadmodule "/usr/local/lib/ser/modules/uri_db.so" <BR>loadmodule "/usr/local/lib/ser/modules/acc.so"</DIV>
<DIV># digest authentication<BR>loadmodule "/usr/local/lib/ser/modules/auth.so"<BR>loadmodule "/usr/local/lib/ser/modules/auth_db.so"</DIV>
<DIV># ----------------- setting module-specific parameters ---------------</DIV>
<DIV>modparam("usrloc", "db_mode", 2)</DIV>
<DIV># storing passwords in our database in plain text:<BR># modparam("auth_db", "calculate_ha1", yes)<BR># modparam("auth_db", "password_column", "password")</DIV>
<DIV># For Rad Accounting<BR>modparam("acc","radius_config","/usr/local/etc/radiusclient/radiusclient.conf")<BR>modparam("acc", "service_type", 15)<BR>modparam("acc", "radius_flag", 1)<BR>modparam("acc", "radius_missed_flag", 3)<BR>modparam("acc", "report_ack", 0) # 1 reporta dos starts en acc<BR># modparam("acc", "failed_transactions", 1)</DIV>
<DIV>modparam("tm", "fr_timer", 20 )<BR>modparam("tm", "fr_inv_timer", 30 )<BR>modparam("tm", "wt_timer", 20 )</DIV>
<DIV>modparam("rr", "enable_full_lr", 1)</DIV>
<DIV>modparam("group", "db_url", "mysql://ser:heslo@localhost/ser") # mysql in cvs head vs<BR>#modparam("uri", "db_url", "sql://ser:heslo@localhost/ser") ## in ser0814<BR>modparam("uri_db", "db_url", "mysql://ser:heslo@localhost/ser") # in cvs head version</DIV>
<DIV><BR># --------------------- request routing logic -------------------<BR>route {</DIV>
<DIV> log(1, "-------------------------------------------\n");<BR> log(1, "entering main loop\n");</DIV>
<DIV><BR> # initial sanity checks -- messages with<BR> # max_forwards==0, or excessively long requests<BR> if (!mf_process_maxfwd_header("10")) {<BR> sl_send_reply("483","Too Many Hops");<BR> break;<BR> };<BR> if ( msg:len > max_len ) {<BR> sl_send_reply("513", "Message too big");<BR> break;<BR> };</DIV>
<DIV> # we record-route all messages -- to make sure that<BR> # subsequent messages will go through our proxy; that's<BR> # particularly good if upstream and downstream entities<BR> # use different transport protocol</DIV>
<DIV> # record-route INVITES to make sure BYEs will visit our server too<BR> if (method=="INVITE") record_route();</DIV>
<DIV> # loose-route processing<BR> if (loose_route()) {<BR> t_relay();<BR> break;<BR> };</DIV>
<DIV> # set for accounting:<BR> <BR> if (method=="INVITE") {<BR> log(1, "INVITE MESSAGE RECEIVED - START ACC\n");<BR> setflag(1); /* set for accounting (the same value as in log_flag!) */<BR> };</DIV>
<DIV> if (method=="BYE") {<BR> log (1, "BYE - STOP ACCOUNTING\n");<BR> setflag(1);<BR> };</DIV>
<DIV> if (method=="CANCEL") {<BR> log (1, "CANCEL - STOP ACCOUNTING\n");<BR> setflag(1);<BR> };<BR> <BR> if (!uri==myself) {<BR> t_relay();<BR> break;<BR> };<BR> setflag(3); # radius missed flag</DIV>
<DIV> if (method == "REGISTER") {<BR> log(1, "ANALYZING REGISTER REQUEST\n");<BR> # to use digest authentication<BR> if (!www_authorize("call.millicom.com", "subscriber")) {<BR> www_challenge("call.millicom.com", "0");<BR> break;<BR>
};<BR> if (!save("location")) {<BR> sl_reply_error();<BR> };<BR> break;<BR> };</DIV>
<DIV> lookup("aliases"); </DIV>
<DIV> # does the user wish redirection on no availability? (i.e., is he<BR> # in the voicemail group?) -- determine it now and store it in<BR> # flag 4, before we rewrite the flag using UsrLoc</DIV>
<DIV> if (is_user_in("Request-URI", "voicemail")) {<BR> setflag(4);<BR> };</DIV>
<DIV> # native SIP destinations are handled using our USRLOC DB<BR> if (!lookup("location")) {<BR> # handle user which was not found<BR> route(4);<BR> break;<BR> };</DIV>
<DIV> # if user is on-line and is in voicemail group, enable redirection<BR> if (method == "INVITE" && isflagset(4)) {<BR> t_on_failure("1");<BR> };<BR> t_relay();<BR>}</DIV>
<DIV># ------------- handling of unavailable user ------------------<BR>route[4] {<BR> <BR> # non-Voip -- just send "off-line"<BR> if (!(method=="INVITE" || method=="ACK" || method=="CANCEL" || method=="BYE")) {<BR> sl_send_reply("404", "Not Found");<BR> acc_rad_request("404 Not Found");<BR> break;<BR> };</DIV>
<DIV> # not voicemail subscriber<BR> if (!isflagset(4)) { <BR> sl_send_reply("404", "Not Found and no voicemail turned on");<BR> acc_rad_request("404 Not Found");<BR> break;<BR> };</DIV>
<DIV> # forward to voicemail now<BR> rewritehostport("call.millicom.com.pe:5090");<BR> t_relay_to_udp("call.millicom.com.pe", "5090");<BR>}</DIV>
<DIV># if forwarding downstream did not succeed, try voicemail running<BR># at bat.iptel.org:5090</DIV>
<DIV>failure_route[1]{<BR> if (t_check_status("408|486|487")){<BR> revert_uri ();<BR> rewritehostport ("call.millicom.com.pe:5090");<BR> append_branch();<BR> t_relay();<BR> break;<BR> }<BR>}</DIV>
<DIV>/*<BR>failure_route[1] {<BR> revert_uri();<BR> rewritehostport("call.millicom.com.pe:5090");<BR> append_branch();<BR> t_relay_to_udp("call.millicom.com.pe", "5090");<BR>}<BR>*/</DIV>
<DIV> </DIV>
<DIV> </DIV><p><br><hr size=1 noshade><b>Do You Yahoo!?</b><br>
<a href=http://espanol.yahoo.com/mail_tagline/*http://espanol.news.yahoo.com><img src="http://us.i1.yimg.com/us.yimg.com/i/not/dailynews.gif" width=30 height=26 border=0 align=left></a>
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.<br>
Visíta <a href=http://espanol.yahoo.com/mail_tagline/*http://espanol.news.yahoo.com>Yahoo! Noticias</a>.<br>