Hi all,
I solved my problem SEND IM, missed calls, Voicemail. I do hope that could help somebody !!!
However when I call an offline user1 he received a missed calls from user2 but user1 don't receive email notification in his mailbox although voicemail system answer the user2's call???
Harry
--------------------------------------------------------- # native SIP destinations are handled using our USRLOC DB lookup("aliases"); if (!lookup("location")) {
if (! t_newtran()) { sl_reply_error(); break; }; t_reply("100","Trying -- just wait a minute !");
if(method=="INVITE"){ acc_log_request("404 missed call\n"); acc_db_request("404 missed call", "missed_calls"); setflag(3); if(!vm("/tmp/am_fifo","voicemail")){ log("could not contact the answer machine\n"); t_reply("500","could not contact the answer machine"); }; if(method=="BYE" || method=="CANCEL"){ if(!vm("/tmp/am_fifo","bye")){ log("could not contact the answer machine\n"); t_reply("500","could not contact the answer machine"); };
}; break; };
# we do not care about anything else but MESSAGEs if (!method=="MESSAGE") { if (!t_reply("404", "Not found")) { sl_reply_error(); }; break; }; log("MESSAGE received -> storing using MSILO\n"); # MSILO - storing as offline message if (m_store("0")) { log("MSILO: offline message stored\n"); if (!t_reply("202", "Accepted")) { sl_reply_error(); }; }else{ log("MSILO: offline message NOT stored\n"); if (!t_reply("503", "Service Unavailable")) { sl_reply_error(); }; }; break; }; # if the downstream UA does not support MESSAGE requests # go to failure_route[1] t_on_failure("1"); t_relay(); break; }; # forward to current uri now; use stateful forwarding; that # works reliably even if we forward from TCP to UDP if (!t_relay()) { sl_reply_error(); }; }
failure_route[1] { # forwarding failed -- check if the request was a MESSAGE if (!method=="MESSAGE") { break; }; log(1,"MSILO: the downstream UA does not support MESSAGE requests ...\n"); # we have changed the R-URI with the contact address -- ignore it now if (m_store("1")) { log("MSILO: offline message stored\n"); t_reply("202", "Accepted for delivery"); }else{ log("MSILO: offline message NOT stored\n"); t_reply("503", "Service Unavailable"); }; }
On 28-04 12:12, gaillac harry wrote:
Hi all, However when I call an offline user1 he received a missed calls from user2 but user1 don't receive email notification in his mailbox although voicemail system answer the user2's call???
Make sure you have an MTA running on the same host as serweb.
Jan.