Hi Users,

I'm Setting UP the Voicemails  by integrating with  Asterisk and   OpenSER,

After 32  sec or 6 ring, it  has to go the Voicemail server of Asterisk,

In openser.cfg   ........... is not hiiting the Asterisk server
............. ... any one  help me ........
....
....
modparam("tm","fr_timer",6)
modparam("tm","fr_inv_timer",24)
modparam("tm","wt_timer",1)
#mrodparam("tm", "ruri_matching", 0)
#modparam("tm", "via1_matching", 0)
modparam("avpops","avp_url","mysql://root:[EMAIL PROTECTED]/openser")
modparam("avpops", "avp_table", "usr_preferences")
modparam("avpops","avp_aliases","inv=i:15")
...............
route
{
......
if (loose_route()) {
      t_relay();
           exit;
       };
if(is_method("INVITE") && !has_totag())
               {
                       xdbg("user [$ruri] has voicemail redirection
enabled\n");
                       # backup R-URI
                       avp_write("$ruri","$avp(inv)");
                       setflag(2);
               };
..............
....
route(1);
}
route[1] {
if(isflagset(2))
       {
        t_on_failure("1");
       };
}
failure_route[1] {
       log("----------------------------------------- \n");
       if (t_was_cancelled()) {
               xdbg("transaction was cancelled by UAC\n");
               return;
       }
       # restore initial uri
       avp_pushto("$ruri", "$avp(inv)");
       prefix("9");
       # route to Asterisk Media Server
       rewritehostport("192.168.2.75:5060");
       append_branch();
       t_relay("192.168.2.75:5060");
    resetflag(2);
}


.........................




--
Thanks and Regards
Ravi Prakash Sunkara
[EMAIL PROTECTED]
M:+91 9985077535
O:+91 40 23114549
F:+91 40 40208727
[EMAIL PROTECTED]
www.hyperion-tech.com
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to