<div>Hi</div>
<div> </div>
<div>I have existing SER Running</div>
<div> </div>
<div>i have local users ( extensions) and DID ( all other countries)</div>
<div> </div>
<div>iam able to make calls in and out , there is no problem</div>
<div> </div>
<div>but when the user not available, it has to send to Voice mail, but its only sending the users</div>
<div>who are locally start with 9*, </div>
<div> </div>
<div>how can i send the user start with 9 or any DID not availble send to voicemail</div>
<div> </div>
<div>here is my config</div>
<div> </div>
<div>
<p> if (!lookup("location") &&<br> ( uri=~"^sip:<a href="mailto:9.*@domain.com">9.*@domain.com</a>" )<br> ) {</p>
<p> # Voicemail specific configuration - begin</p>
<p> if(method=="ACK" || method=="INVITE" || method=="BYE"){</p>
<p> setflag(2);<br> if(t_newtran()){</p>
<p> t_reply("100","Trying -- just wait a minute !");</p>
<p> if(method=="INVITE"){<br> log(1,"**************** vm start - begin ******************\n");<br> if(!vm("/tmp/am_fifo","voicemail")){
<br> log("could not contact the answer machine\n");<br> t_reply("500","could not contact the answer machine");<br>
};<br> log(1,"**************** vm start - end ******************\n");<br> break;<br> };</p>
<p> if(method=="BYE"){<br> log(1,"**************** vm end - begin ******************\n");<br> if(!vm("/tmp/am_fifo","bye")){
<br> log("could not contact the answer machine\n");<br> t_reply("500","could not contact the answer machine");<br>
};<br> log(1,"**************** vm end - end ******************\n");<br> break;<br> };<br> }
<br> else {<br> log("could not create new transaction\n");<br> sl_send_reply("500","could not create new transaction");<br> };
</p>
<p> break;<br> };<br> break;<br> };<br></p>
<p> </p>
<p>any help will be great</p>
<p> </p>
<p>Ram</p></div>