deleted the announcement server part, so that the example gets simplier.
authorRaphael Coeffic <rco@iptel.org>
Sat, 29 Nov 2003 12:45:44 +0000 (12:45 +0000)
committerRaphael Coeffic <rco@iptel.org>
Sat, 29 Nov 2003 12:45:44 +0000 (12:45 +0000)
examples/voicemail.cfg

index 126cf07..59b5994 100644 (file)
@@ -70,16 +70,9 @@ route{
                t_reply("100","Trying -- just wait a minute !");
                if(method=="INVITE"){
                        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");
                } else if(method=="BYE"){