Thanks for reply, well actually I'm doing billing after call hangup. If h extension is interupts I'm sending to it to addcdr context which interupts perl script for billing purpose. As I'm listing down below asterisk configuration;
h =>
{
NOOP("Call Completed with Carrier ${CARRIER}");
goto add_cdr|h|1;
};
context add_cdr
{
_X. =>
{
Hangup();
};
h =>
{
Set(CALL_END_TIME=${EPOCH});
//&print_variables();
NOOP("Call Ended: Card:${CARDNUM} Destination:${CALLEDNUM} Caller-ID:${CALLERID(num)}");
if (${DIALEXECUTED}=YES)
{
NOOP("Dial-Status:${DIALSTATUS}");
}else
{
NOOP("Dial was not Executed");
};
DeadAGI(/vopium/agi/billing.pl);
NOOP();
};
};
Kindly advice me how I pass/translate h extension in FS in this situation i.e. <action application="api_hangup_hook" data="addcdr 1"/> or there is other way around???
From: Michael Collins <msc@freeswitch.org>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Thu, 10 Sep 2009 00:55:02 -0700
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Implementing h extension in FS
On Wed, Sep 9, 2009 at 10:16 PM, Ahmed Munir <ahmedmunir007@gmail.com> wrote:
HI,
I'm newbie in FS, I want to know how to implement h extension of asterisk to FS. As I listed down below;
h =>
{
NOOP("Call Completed with Carrier ${CARRIER}");
goto add_cdr|h|1;
};
My other question is, which application/function/class is use in mod_perl to check the channel status? i.e. busy, answer,hangup,ringing,etc.
Kindly advice me soon.
--
Regards,
Ahmed Munir