[Serusers] voicemail (again)

Atle Samuelsen clona at cyberhouse.no
Sun Jan 25 22:10:54 CET 2004



Hey guys, 

Im playing with the voicemail .. again..and wondering on how I can make
my voicemail service take the phone after ~10 rings.

this is the if I'v got now.. 


- Atle

 # Voicemail specific configuration - begin

                if(method=="ACK" || method=="INVITE" || method=="BYE"){

                        if(t_newtran()){

                                t_reply("100","Trying -- just wait a minute !");

                                if(method=="INVITE"){
                                        log("**************** 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("**************** vm start - end ******************\n");
                                        break;
                                };

                                if(method=="BYE"){
                                        log("**************** 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("**************** vm end - end ******************\n");
                                        break;
                                };
                        }
                        else {
                             log("could not create new transaction\n");
                             sl_send_reply("500","could not create new transaction");
                        };
                };

                # Voicemail specific configuration - end




More information about the sr-users mailing list