Hiiam following the same document only to make my voice mail workbelow is my config, its works if the user is registered locallyand if not available it will moving to voicemailBut when iam dialing PSTN still its going to voicemailAug 25 11:05:19 cdrouter ser[9337]: **************** vm start - begin ******************
Aug 25 11:05:19 cdrouter Sems[802]: Error: 404 voicemail: no email address for user <1XXXXXX360>
Aug 25 11:05:19 cdrouter ser[9348]: ACC: call missed: from=99999 < sip:99999@domain.com>;tag=2858293102, i-uri=sip:1XXXXXXX360@domain.com, method=INVITE, o-uri= sip:1XXXXXX360@domain.com, code=404 Not Found
Aug 25 11:05:19 cdrouter ser[9337]: **************** vm start - end ******************
------------
if (!lookup("location")) {# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){
setflag(2);
if(t_newtran()){t_reply("100","Trying -- just wait a minute !");
if(method=="INVITE"){
log(1,"**************** vm start - begin ******************\n");
if(!vm("/tmp/am_fifo","voicemail")){
log("could not contact the answer machine\n");
t_reply("500","could not contact the answer machine");
};
log(1,"**************** vm start - end ******************\n");
break;
};if(method=="BYE"){
log(1,"**************** vm end - begin ******************\n");
if(!vm("/tmp/am_fifo","bye")){
log("could not contact the answer machine\n");
t_reply("500","could not contact the answer machine");
};
log(1,"**************** vm end - end ******************\n");
break;
};
}
else {
log("could not create new transaction\n");
sl_send_reply("500","could not create new transaction");
};
/* Not found*/
sl_send_reply("404","Not Found");
};
# Voicemail specific configuration - end
};
On 8/24/06, Greger V. Teigre <greger@teigre.com> wrote:Look at the features-callfwd.cfg example from onsip.org, now available here:
http://www.iptel.org/ser/doc/gettingstarted
g-)
ram wrote:HiI have existing SER Runningi have local users ( extensions) and DID ( all other countries)iam able to make calls in and out , there is no problembut when the user not available, it has to send to Voice mail, but its only sending the userswho are locally start with 9*,how can i send the user start with 9 or any DID not availble send to voicemailhere is my configif (!lookup("location") &&
( uri=~"^sip:9.*@domain.com" )
) {# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){
setflag(2);
if(t_newtran()){t_reply("100","Trying -- just wait a minute !");
if(method=="INVITE"){
log(1,"**************** vm start - begin ******************\n");
if(!vm("/tmp/am_fifo","voicemail")){
log("could not contact the answer machine\n");
t_reply("500","could not contact the answer machine");
};
log(1,"**************** vm start - end ******************\n");
break;
};if(method=="BYE"){
log(1,"**************** vm end - begin ******************\n");
if(!vm("/tmp/am_fifo","bye")){
log("could not contact the answer machine\n");
t_reply("500","could not contact the answer machine");
};
log(1,"**************** vm end - end ******************\n");
break;
};
}
else {
log("could not create new transaction\n");
sl_send_reply("500","could not create new transaction");
};break;
};
break;
};
any help will be great
Ram
_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers