Jelajahi Sumber

deleted the announcement server part, so that the example gets simplier.

Raphael Coeffic 22 tahun lalu
induk
melakukan
5ee0499d00
1 mengubah file dengan 3 tambahan dan 10 penghapusan
  1. 3 10
      examples/voicemail.cfg

+ 3 - 10
examples/voicemail.cfg

@@ -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"){