Browse code

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

Raphael Coeffic authored on 29/11/2003 12:45:44
Showing 1 changed files
... ...
@@ -70,16 +70,9 @@ route{
70 70
 		t_reply("100","Trying -- just wait a minute !");
71 71
 		if(method=="INVITE"){
72 72
 			log("**************** vm start - begin ******************\n");
73
-			if (uri=~"sip:as_welcome@.*" || uri=~"sip:as_nomoney@.*") {
74
-	               		if (!vm("/tmp/am_fifo", "announcement")) {
75
-			        	log("couldn't contact announcement server\n");
76
-					t_reply("500", "couldn not contact announcement server");
77
-				};
78
-			} else {
79
-				if(!vm("/tmp/am_fifo","voicemail")){
80
-					log("could not contact the answer machine\n");
81
-					t_reply("500","could not contact the answer machine");
82
-				};
73
+			if(!vm("/tmp/am_fifo","voicemail")){
74
+				log("could not contact the answer machine\n");
75
+				t_reply("500","could not contact the answer machine");
83 76
 			};
84 77
 			log("**************** vm start - end ******************\n");
85 78
 		} else if(method=="BYE"){