Incoming call on a busy line is not handled properly

Version 1
    This document was generated from CDN thread

    Created by: Peter Frank on 08-02-2012 09:11:27 AM
    Hi,
     
    I'm using a TCL-Script for reverse name resolution on our UC520-Gateway. It works great if the called party isn't busy but if there's a incoming call on a busy line, the call simply aborts without a busy tone. This behavior cannot be observed if the script is not associated with the dial peer. Is there an error within the script?
     
    Thanks,
    Peter

    Subject: RE: Incoming call on a busy line is not handled properly
    Replied by: Raghavendra Gutty Veeranagappa on 09-02-2012 03:01:52 AM
    Hi peter,

    when the destination is busy TCL script will receive ls_007 status, i think you need to handle ls_007 and play busy prompt in case call made from IP phone.

    proc act_SetupDone {} {
      set status [ infotag get evt_status ]
      switch $status {
        ls_000 {
          puts "\n---- Connected\n"
        }
        default {
          leg disconnect leg_incoming -c 91
        }
      }
    }

    Thanks,
    Raghavendra

    Subject: RE: Incoming call on a busy line is not handled properly
    Replied by: Peter Frank on 09-02-2012 05:17:41 AM
    Hi Raghavendra,

    many thanks for the tip! The solution was rather simple:

    switch $status {
    ls_000 {
    return
    }

    ls_007 {
    leg disconnect leg_incoming -c 17
    }

    Subject: RE: Incoming call on a busy line is not handled properly
    Replied by: Florian Kroessbacher on 03-04-2012 06:12:53 PM
    Hy

    how does the server answer look like for the vxml request

    thnxs