[Serusers] RE: [Users] need help to configure voicemail

harry gaillac gaillacharry at yahoo.fr
Sun Jul 10 19:12:00 CEST 2005


Does SER is able to send messages to an other SER
behind nat  ?

if yes what's the way ?

Harry
--- harry gaillac <gaillacharry at yahoo.fr> a écrit :

> 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
> 



	
	
		
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com




More information about the sr-users mailing list