my detail is bellow. i am using asterisk 1.8.13 _______________________________________________________________________________ File: /etc/asterisk/extensions.conf [call] exten => call,1,Answer exten => call,n,Playback(hello-world) exten => call,n,Hangup() exten => h,1,Set(NEXT=$[${NEXT}+1]) exten => h,n,AGI(generateCall.php,${NEXT}) exten => h,n,Hangup() _______________________________________________________________________ File: /usr/share/asterisk/agi-bin/generateCall.php #!/usr/bin/php -q ____________________________________________________________________________ mac@almighty ~ $ ls /usr/share/asterisk/agi-bin/ -l total 4 -rwxrwxrwx 1 root root 1166 Feb 20 15:48 generateCall.php ____________________________________________________________________________ mac@almighty ~ $ ls /var/spool/asterisk/ -l total 28 drwxrwxrwx 2 root users 4096 Sep 13 06:59 dictate drwxrwxrwx 2 root users 4096 Sep 13 06:59 meetme drwxrwxrwx 2 root users 4096 Sep 13 06:59 monitor drwxrwxrwx 2 root users 4096 Feb 20 20:39 outgoing drwxrwxrwx 2 root users 4096 Sep 13 06:59 system drwxrwxrwx 2 root users 4096 Sep 13 06:59 tmp drwxrwxrwx 2 root users 4096 Sep 13 06:59 voicemail mac@almighty ~ $ ____________________________________________________________________________ almighty*CLI> [Feb 20 20:39:32] WARNING[2007]: pbx_spool.c:278 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/9033544852.call: Operation not permitted -- Attempting call on dongle/dongle0/9033544852 for call@call:1 (Retry 1) > Channel Dongle/dongle0-010000000d was answered. -- Executing [call@call:1] Answer("Dongle/dongle0-010000000d", "") in new stack -- Executing [call@call:2] Playback("Dongle/dongle0-010000000d", "silence/1") in new stack -- Playing 'silence/1.gsm' (language 'en') -- Executing [call@call:3] Playback("Dongle/dongle0-010000000d", "hello-world") in new stack -- Playing 'hello-world.gsm' (language 'en') -- Executing [call@call:4] SayDigits("Dongle/dongle0-010000000d", "0") in new stack -- Playing 'digits/0.gsm' (language 'en') -- Executing [call@call:5] Hangup("Dongle/dongle0-010000000d", "") in new stack == Spawn extension (call, call, 5) exited non-zero on 'Dongle/dongle0-010000000d' -- Executing [h@call:1] Set("Dongle/dongle0-010000000d", "NEXT=1") in new stack -- Executing [h@call:2] AGI("Dongle/dongle0-010000000d", "generateCall.php,1") in new stack -- Launched AGI Script /usr/share/asterisk/agi-bin/generateCall.php AGI Tx >> agi_request: generateCall.php AGI Tx >> agi_channel: Dongle/dongle0-010000000d AGI Tx >> agi_language: en AGI Tx >> agi_type: Dongle AGI Tx >> agi_uniqueid: 1361372972.13 AGI Tx >> agi_version: 1.8.13.1~dfsg-1 AGI Tx >> agi_callerid: unknown AGI Tx >> agi_calleridname: unknown AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: unknown AGI Tx >> agi_rdnis: unknown AGI Tx >> agi_context: call AGI Tx >> agi_extension: h AGI Tx >> agi_priority: 2 AGI Tx >> agi_enhanced: 0.0 AGI Tx >> agi_accountcode: AGI Tx >> agi_threadid: 1129301104 AGI Tx >> agi_arg_1: 1 AGI Tx >> AGI Rx << Could not open input file: 1 AGI Tx >> 510 Invalid or unknown command -- AGI Script generateCall.php completed, returning 0 [Feb 20 20:39:44] NOTICE[2672]: pbx_spool.c:366 attempt_thread: Call completed to dongle/dongle0/9033544852 almighty*CLI>