[Serusers] Voice Mail problem

ram talk2ram at gmail.com
Wed Aug 23 20:01:06 CEST 2006


Hi

I have existing SER Running

i have local users ( extensions) and DID ( all other countries)

iam able to make calls in and out , there is no problem

but when the user not available, it has to send to  Voice mail, but its only
sending the users
who are locally start with 9*,

how can i send the user start with  9 or any DID  not availble send to
voicemail

here is my config


 if (!lookup("location") &&
                ( uri=~"^sip:9.*@domain.com" )
                ) {

                        # Voicemail specific configuration - begin

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

                        setflag(2);
                        if(t_newtran()){

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

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

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

                break;
                };
        break;
        };



any help will be great



Ram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060823/f8f32207/attachment.htm>


More information about the sr-users mailing list