In article <[EMAIL PROTECTED]>, selmak se <[EMAIL PROTECTED]> wrote:
>  I noticed that when dial terminates it does not return to the dialplan, 
> and therefore can not execute any entry after Dial().
> 
>  Is there any trick to overcome this limitation ?

You can give the 'g' option to Dial, but that might not be the best way.

>  How I am supposed to handle the returned vales DIALEDTIME, ANSWEREDTIME if 
> I can not execute anything after Dial()?

In the 'h' extension, as you mentioned below.

>  I made a workaround with DeadAGI (below) but it is unreliable: if 2 calls 
> end nearly at the same time I do not know to whom belongs the ANSWEREDTIME 
> value :
> 
>  exten => h,1,DeadAGI(myagi.agi,0,${DIALEDTIME},${ANSWEREDTIME},00)

Use the value of ${UNIQUEID} to distinguish between the channels. It will
be unique for every channel in a system.

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Reply via email to