|
@@ -70,16 +70,9 @@ route{
|
|
t_reply("100","Trying -- just wait a minute !");
|
|
t_reply("100","Trying -- just wait a minute !");
|
|
if(method=="INVITE"){
|
|
if(method=="INVITE"){
|
|
log("**************** vm start - begin ******************\n");
|
|
log("**************** vm start - begin ******************\n");
|
|
- if (uri=~"sip:as_welcome@.*" || uri=~"sip:as_nomoney@.*") {
|
|
|
|
- if (!vm("/tmp/am_fifo", "announcement")) {
|
|
|
|
- log("couldn't contact announcement server\n");
|
|
|
|
- t_reply("500", "couldn not contact announcement server");
|
|
|
|
- };
|
|
|
|
- } else {
|
|
|
|
- if(!vm("/tmp/am_fifo","voicemail")){
|
|
|
|
- log("could not contact the answer machine\n");
|
|
|
|
- t_reply("500","could not contact the answer machine");
|
|
|
|
- };
|
|
|
|
|
|
+ if(!vm("/tmp/am_fifo","voicemail")){
|
|
|
|
+ log("could not contact the answer machine\n");
|
|
|
|
+ t_reply("500","could not contact the answer machine");
|
|
};
|
|
};
|
|
log("**************** vm start - end ******************\n");
|
|
log("**************** vm start - end ******************\n");
|
|
} else if(method=="BYE"){
|
|
} else if(method=="BYE"){
|