if (!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