Hi,

Your dial-plan could be like this,

here you will dial
EXTEN => _X,1,NoOp
EXTEN => _X,n,Set(WHOHAVEHANGED=CALLER)
EXTEN => _X,n,Dial(ZAP/xyz)
if caller hanged below line will never be executed because control will go to h extension.
EXTEN => _X,n,Set(WHOHAVEHANGED=CALEE)


EXTEN => h,1,NoOp(${WHOHAVEHANGED} have hanged the call reason is ${HANGUPCAUSE})

Regards,

Faisal Hanif

On 8/12/2010 12:29 AM, bruce bruce wrote:
Sorry, I am not following:

*/"/**/read the value of var ${HANGUPCAUSE} next line to dial command."/*
*/
/*
*/Where is that value? Next to dial you mean right when the call was placed? or check next few lines to find HANGUP cause?/*
*/
/*
*/Note: This is using ZAP (analogue) and not PRI./*
*/
/*
*/Thanks,/*
*/Bruce
/*
On Wed, Aug 11, 2010 at 12:33 AM, Faisal Hanif <[email protected] <mailto:[email protected]>> wrote:

    read the value of var ${HANGUPCAUSE} next line to dial command.

    Regards,

    Faisal Hanif
    /VoIP Manager
    /**Vopium A/S

    On 8/10/2010 9:51 PM, bruce bruce wrote:

    Hi Everyone

    Asterisk 1.4.33 is running with Sangoma/Dahdi for analogue lines
    to Bell Canada.

    User claims that call hangup without any interferance to the
    phone set.

    Is there ANYWAY to find out which party hang-up the call or if
    the call was cut-off due to other reasons?

    I checked the *"asteriskcdrb"* table and it's pretty much useless
    in this case as it only logs the duration and other properties
    but not cause of the Hangup.


     /var/log/asterisk/full

    [Jul 10 10:37:02] VERBOSE[29366] logger.c:   == Manager 'admin'
    logged off from 127.0.0.1
    [Jul 10 10:37:09] VERBOSE[29348] logger.c:     -- Executing
    [...@macro-dialout-trunk:1] Macro("SIP/1007-0000069a",
    "hangupcall|") in new stack
    [Jul 10 10:37:09] VERBOSE[29348] logger.c:     -- Executing
    [...@macro-hangupcall:1] GotoIf("SIP/1007-0000069a", "1?skiprg") in
    new stack
    [Jul 10 10:37:09] VERBOSE[29348] logger.c:     -- Goto
    (macro-hangupcall,s,4)


    Thanks,

    Bruce


    --
    _____________________________________________________________________
    -- Bandwidth and Colocation Provided by http://www.api-digital.com --
    New to Asterisk? Join us for a live introductory webinar every Thurs:
    http://www.asterisk.org/hello

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to