[Users] need help to configure voicemail

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jul 11 16:29:53 CEST 2005


Hi Harry,

for offline users, do like this:

        ...........
	lookup("aliases");
        if (!lookup("location")) {
		if (isflagset(5)) {
                	route(6);
		} else {
	                sl_send_reply("404", "User Not
Found");
		};
                exit;
        };
	..............


let me know if works for you.

regards,
bogdan

harry gaillac wrote:

>Hello, 
>
>I use ser-0.9.3 .
>
>I wish to send calls to offline or unavailable users
>to 
>SEMS .
>
>
>Private Network:---------SER----------internet
>users agents          Mediaproxy
>SEMS
>
>
>I tried to add something like this in ser.cfg without
>success !
>
>Thanks for help
>Harry
>
>modparam("tm", "fr_inv_timer", 25)
>.......................................................
>        # Check ACL for voicemail
>        if (is_user_in("Request-URI", "voicemail")) {
>                setflag(5);
>        };
>        # User unavailable
>        #if (method=="INVITE" && isflagset(5)) {
>        #       t_on_failure("1");
>        #       route(1);
>        #       break;
>        #};
>
>        lookup("aliases");
>        if (!lookup("location")) {
>                route(6);
>        } else if (!lookup("location")) {
>                sl_send_reply("404", "User Not
>Found");
>                break;
>        };
>.......................................................
>route[1] {
>        ###########################
>        # Default Message Handler #
>        ###########################
>
>        t_on_reply("1");
>
>        # send it out now; use stateful forwarding as
>it works reliably
>        # even for UDP2TCP
>        if (!t_relay()) {
>                sl_reply_error();
>        };
>}
>
>route[6] {
>        ##########################
>        #    voicemail Handler   #
>        ##########################
>        # forward to voicemail now
>        rewritehost("192.168.0.2");
>}
>
>
>
>onreply_route[1] {
>        ##########################
>        #    Statefull Handler   #
>        ##########################
>
>
>        if (client_nat_test("1")) {
>                setflag(4);
>        };
>
>        if (isflagset(4) && status=~"(180) || (183) ||
>2[0-9][0-9]") {
>                if(search("^Content-Type: .*$")) {
>                        use_media_proxy();
>                };
>        };
>
>}
>
>
>failure_route[1] {
>        ##########################
>        #    Voicemail Handler   #
>        ##########################
>        revert_uri();
>        rewritehost("192.168.0.2");
>}
>
>
>
>
>
>	
>
>	
>		
>___________________________________________________________________________ 
>Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
>Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>  
>





More information about the Users mailing list