[Serusers] SER + Asterisk Voicmail forward on failure

Muhammad Nasim muhammad at telappliant.com
Wed Jun 30 17:42:50 CEST 2004


Having searched the groups I have come up with the following in ser.cfg
to forward calls from SER to Asterisk voicemail on timeout.

The system should work as follows. E.g dial 8003. Ring phone at 8003 for
15 seconds then go to voicemail (at asterisk).

Phenomena:

1. When the failure_route is exited though I can see some traffic
hitting asterisk, the original phone at 8003 continues to ring.

2. If I press Deny on the phone at 8003 TWICE then the call goes to
voicemail

3. If 8003 is on the offhook, call automatically goes to voicemail 

Points 2 and 3 are pretty much what I want.

But in point 1, what am I doing wrong that doesn't cause the
t_on_failure to stop ringing the destination phone.

I include the relevant part of my ser.cfg below

............................

           
        log("\nMARKER VOICEMAIL ATTEMPT STARTS HERE\n");
        t_on_failure("1");#send to voicemail now
        log("\nMARKER VOICEMAIL ATTEMPT STOPS HERE\n");

............................
............................


failure_route[1] {


      log("\n MARKER IN FAILURE ROUTE START");
      if(t_check_status("408")){
         log("\nMARKER We have hit second status 408\n");
      };
      revert_uri();
      rewritehostport("telth3.dyndns.org:5061");
      append_branch();
      log("\n MARKER IN FAILURE ROUTE AFTER APPEND BRANCH\n");
      t_relay_to_udp("telth3.dyndns.org","5061");
      log("\n MARKER IN FAILURE ROUTE END");
      break;
    

}

~

Muhammad Nasim
TelAppliant Ltd 
Tel: 020 7740 3492
Int: +44 20 7740 3492
Main: 0845 004 4040
Fax: 0845 004 4041 
www.telappliant.com 

 
TelAppliant is the UK's provider of IP telephony solutions for small and
medium-sized businesses 

  _____  

The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution or any action taken
or omitted to be taken in reliance on it is prohibited and may be
unlawful. 





More information about the sr-users mailing list