<br>Hi Users, <br><br>I'm Setting UP the Voicemails by integrating with Asterisk and OpenSER, <br><br>After 32 sec or 6 ring, it has to go the Voicemail server of Asterisk, <br><br>In openser.cfg ........... is not hiiting the Asterisk server ............. ... any one help me ........
<br>....<br>....<br>modparam("tm","fr_timer",6)<br>modparam("tm","fr_inv_timer",24)<br>modparam("tm","wt_timer",1)<br>#mrodparam("tm", "ruri_matching", 0)
<br>#modparam("tm", "via1_matching", 0)<br>modparam("avpops","avp_url","mysql://root:passwd@192.168.2.75/openser")<br>modparam("avpops", "avp_table", "usr_preferences")
<br>modparam("avpops","avp_aliases","inv=i:15")<br> ...............<br>route <br>{<br>......<br> if (loose_route()) {<br> t_relay();<br> exit;<br> };<br>if(is_method("INVITE") && !has_totag())
<br> {<br> xdbg("user [$ruri] has voicemail redirection enabled\n");<br> # backup R-URI<br> avp_write("$ruri","$avp(inv)");
<br> setflag(2);<br> };<br>..............<br>....<br>route(1);<br>}<br>route[1] {<br>if(isflagset(2))<br> {<br> t_on_failure("1");<br> };<br>}<br> failure_route[1] {
<br> log("----------------------------------------- \n");<br> if (t_was_cancelled()) {<br> xdbg("transaction was cancelled by UAC\n");<br> return;<br> }
<br> # restore initial uri<br> avp_pushto("$ruri", "$avp(inv)");<br> prefix("9");<br> # route to Asterisk Media Server<br> rewritehostport("<a href="http://192.168.2.75:5060">
192.168.2.75:5060</a>");<br> append_branch();<br> t_relay("<a href="http://192.168.2.75:5060">192.168.2.75:5060</a>");<br> resetflag(2);<br>}<br><br><br>.........................<br><br> <br>
<br clear="all"><br>-- <br>Thanks and Regards<br>Ravi Prakash Sunkara                <br><a href="mailto:ravi.sunkara@hyperion-tech.com">ravi.sunkara@hyperion-tech.com</a>         <br>M:+91 9985077535<br>O:+91 40 23114549<br>F:+91 40 40208727                 
<br><a href="mailto:ravi.sunkara@hyperion-tech.com">ravi.sunkara@hyperion-tech.com</a><br><a href="http://www.hyperion-tech.com">www.hyperion-tech.com</a>