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;<br>
<br><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">h =><br>
{<br>
NOOP("Call Completed with Carrier ${CARRIER}");<br>
goto add_cdr|h|1;<br>
};</span></font></font><br><br><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">
context add_cdr<br>{<br> _X. =><br> {<br> Hangup();<br> };<br> h =><br> {<br> Set(CALL_END_TIME=${EPOCH});<br> //&print_variables();<br> NOOP("Call Ended: Card:${CARDNUM} Destination:${CALLEDNUM} Caller-ID:${CALLERID(num)}");<br>
if (${DIALEXECUTED}=YES)<br> {<br> NOOP("Dial-Status:${DIALSTATUS}");<br> }else<br> {<br> NOOP("Dial was not Executed");<br> };<br> DeadAGI(/vopium/agi/billing.pl);<br>
NOOP();<br> };<br><br>};<br><br>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???<br>
<hr size="3" width="95%" align="center"><b>From: </b>Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>><br>
<b>Reply-To: </b><<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Date: </b>Thu, 10 Sep 2009 00:55:02 -0700<br>
<b>To: </b><<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject: </b>Re: [Freeswitch-users] Implementing h extension in FS<br>
<br>
<br>
<br>
On Wed, Sep 9, 2009 at 10:16 PM, Ahmed Munir <<a href="mailto:ahmedmunir007@gmail.com" target="_blank">ahmedmunir007@gmail.com</a>> wrote:<br>
</span></font></font><blockquote><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">HI,<br>
<br>
I'm newbie in FS, I want to know how to implement h extension of asterisk to FS. As I listed down below;<br>
<br>
h =><br>
{<br>
NOOP("Call Completed with Carrier ${CARRIER}");<br>
goto add_cdr|h|1;<br>
};<br>
<br>
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.<br>
<br>
<br>
Kindly advice me soon.<br>
<br>
-- <br>
Regards,<br>
<font color="#888888"><br>
Ahmed Munir<br>
<br>
</font></span></font></font></blockquote><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
It depends on what you are trying to accomplish, but the closest thing
you'll find in FS to the 'h' extension is the channel variable
api_hangup_hook which lets you launch an API at the end of the call. It
sounds like you are working on CDR processing. Please tell us more
about your application and we'll do our best to offer advice.<br>
-MC</span></font></font><br clear="all"><br>-- <br>Regards,<br><br>Ahmed Munir<br><br><br>