[asterisk-users] integrating with Asterisk and OpenSER for Voicemail

raviprakash sunkara sunkara.raviprakash.feb14 at gmail.com
Fri Jan 5 05:57:57 MST 2007


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:passwd@192.168.2.75/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
ravi.sunkara at hyperion-tech.com
M:+91 9985077535
O:+91 40 23114549
F:+91 40 40208727
ravi.sunkara at hyperion-tech.com
www.hyperion-tech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070105/07e79624/attachment.htm


More information about the asterisk-users mailing list