[asterisk-users] AGI STREAM FILE not working?

mahesh katta maheshkatta at flexydial.com
Mon Jun 6 01:06:22 CDT 2011


On Mon, Jun 6, 2011 at 9:42 AM, A E [Gmail] <all.eforums at gmail.com> wrote:

> Hello,
> using 1.8.4. using a very simple local AGI script in bash which has only
> one line in it:
>
> echo -e 'STREAM FILE welcome 123 \n'
>
> dialplan:
> exten => 5150,1,Answer()
>   same => n,Set(CHANNEL(language)=en_AU)
>   same => n,AGI(testagi.sh)
>
same => n,Hangup
>
Try this below dilaplan

> exten => 5150,1,Answer()
>   same => n,Set(CHANNEL(language)=en_AU)
>   same => n,AGI(testagi)
> same => n,Hangup
>


> console output:
>     -- Executing [5150 at AllPhones:1] Answer("SIP/PBX-00000024", "") in new
> stack
>     -- Executing [5150 at AllPhones:2] Set("SIP/PBX-00000024",
> "CHANNEL(language)=en_AU") in new stack
>     -- Executing [5150 at AllPhones:3] AGI("SIP/PBX-00000024", "testagi.sh")
> in new stack
>     -- Launched AGI Script /var/lib/asterisk/agi-bin/testagi.sh
>     -- Playing 'welcome' (escape_digits=1) (sample_offset 0)
>     -- <SIP/PBX-00000024>AGI Script testagi.sh completed, returning 0
>     -- Executing [5150 at AllPhones:4] Hangup("SIP/PBX-00000024", "") in new
> stack
>   == Spawn extension (AllPhones, 5150, 4) exited non-zero on
> 'SIP/PBX-00000024'
>
> But nothing happens...as in even when it says that it's playing the file
> (as verified in the asterisk 'full' log), I hear nothing on the phone
>
> What gives? spent 2 hrs Googling but nothing! :(
>
> Thx
> \A
>
>
> --
> _____________________________________________________________________
> -- 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
>



-- 
Best Regards,

Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E)
Mumbai 400069
GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
Web http://www.buzzworks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110606/43647272/attachment.htm>


More information about the asterisk-users mailing list