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
Does SER is able to send messages to an other SER behind nat ?
if yes what's the way ?
Harry --- harry gaillac gaillacharry@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@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
Nobody is able to send anything from the public side into the private network, except there is an port forwarding on the NAT, the NAT is broken or there is already an existing "connection" from inside/private network to the outside.
Nils
On Sunday 10 July 2005 19:12, harry gaillac wrote:
Does SER is able to send messages to an other SER behind nat ?
if yes what's the way ?
Harry
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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi, Thanks for help
i solved offline and busy users this mornig i set for busy if (!t_check_status("(486)")) { route(6); route(1); break; };
However when a users is online but anavailable I can't fix that problem
Regards Harry --- Bogdan-Andrei Iancu bogdan@voice-system.ro a écrit :
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
Users mailing list Users@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
unavailable because it is on another call, or does not want to be disturbed, the latter he needs to tell ser he doesnt want to be disturbed, the former, is just normal onbusy send to voicemail
Iqbal
harry gaillac wrote:
Hi, Thanks for help
i solved offline and busy users this mornig i set for busy if (!t_check_status("(486)")) { route(6); route(1); break; };
However when a users is online but anavailable I can't fix that problem
Regards Harry --- Bogdan-Andrei Iancu bogdan@voice-system.ro a écrit :
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
Users mailing list Users@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
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
.
Ok you're online you did not press DND key When I call this user according to tm timer and failure route calls should be forward to voicemail system. Harry --- Iqbal iqbal@gigo.co.uk a écrit :
unavailable because it is on another call, or does not want to be disturbed, the latter he needs to tell ser he doesnt want to be disturbed, the former, is just normal onbusy send to voicemail
Iqbal
harry gaillac wrote:
Hi, Thanks for help
i solved offline and busy users this mornig i set for busy if (!t_check_status("(486)")) { route(6); route(1); break; };
However when a users is online but anavailable I
can't
fix that problem
Regards Harry --- Bogdan-Andrei Iancu bogdan@voice-system.ro a écrit :
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"); }
=== message truncated ===
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com