Please copy serusers.
It's your failure route you should look at!
g-)
ram wrote:
Hi
iam following the same document only to make my voice mail work
below is my config, its works if the user is registered locally
and if not available it will moving to voicemail
But when iam dialing PSTN still its going to voicemail
Aug 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 <mailto:sip:99999@domain.com>>;tag=2858293102,
i-uri=sip:1XXXXXXX360@domain.com <mailto:sip:1XXXXXXX360@domain.com>,
method=INVITE, o-uri= sip:1XXXXXX360@domain.com
<mailto: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(a)teigre.com
<mailto:greger@teigre.com>> wrote:
Look at the features-callfwd.cfg example from
onsip.org
<http://onsip.org/>, now available here:
http://www.iptel.org/ser/doc/gettingstarted
g-)
ram wrote:
Hi
I have existing SER Running
i have local users ( extensions) and DID ( all other countries)
iam able to make calls in and out , there is no problem
but when the user not available, it has to send to Voice mail,
but its only sending the users
who are locally start with 9*,
how can i send the user start with 9 or any DID not availble
send to voicemail
here is my config
if (!lookup("location") &&
( uri=~"^sip:9.*@domain.com <mailto: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(a)lists.iptel.org <mailto:Serusers@lists.iptel.org>
http://lists.iptel.org/mailman/listinfo/serusers