[Serusers] Re: [Users] need help to configure voicemail
Iqbal
iqbal at gigo.co.uk
Mon Jul 11 17:03:26 CEST 2005
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 at 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
>>>
>>>
>>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
>
>_______________________________________________
>Serusers mailing list
>Serusers at iptel.org
>http://mail.iptel.org/mailman/listinfo/serusers
>
>.
>
>
>
More information about the Users
mailing list