Look at the features-callfwd.cfg example from onsip.org, now available here:
http://www.iptel.org/ser/doc/gettingstarted
g-)

ram wrote:
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


_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers