[Home]

Summary:ASTERISK-09560: When using a perl agi script STREAM FILE wont return escape digits
Reporter:Daniel McKeehan (danmckeehan)Labels:
Date Opened:2007-05-31 15:52:34Date Closed:2011-06-07 14:03:04
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_agi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Using the following perl command:
   $pressed = $AGI->stream_file("nowlive-prompts/f",'0123456789');

AGI LOG:
AGI Rx << STREAM FILE "nowlive-prompts/f" "0123456789"
   -- Playing 'nowlive-prompts/f' (escape_digits=0123456789) (sample_offset 0)
AGI Tx >> 200 result=0 endpos=7520

Returned result 0 even through I pressed many digits, wont ever interrupt the playback pressing a digit.

****** ADDITIONAL INFORMATION ******

This however works if you use the fast agi.  Same commands sent to the server same incoming channel etc.

AGI Rx << STREAM FILE "nowlive-prompts/2" "0123456789"
   -- Playing 'nowlive-prompts/2' (escape_digits=0123456789) (sample_offset 0)
AGI Tx >> 200 result=49 endpos=1120

This returns the proper result.
Comments:By: Daniel McKeehan (danmckeehan) 2007-05-31 15:53:50

Here is the dialplan info:

Working:
exten => _XXXXXXXXXX,n,AGI(agi://192.168.1.10/djscript)

Not Working:
exten => _XXXXXXXXXX,1,AGI(nowlive.pl)

By: Tilghman Lesher (tilghman) 2007-05-31 18:53:50

This is probably a bug with your Perl handler, given that, at that level, Asterisk doesn't treat FastAGI any differently.

By: Daniel McKeehan (danmckeehan) 2007-05-31 19:37:17

No because the audio is never interrupted for the stream file which is at a lower level then the script.  Perhaps it is in the digit handling code for SIP not finding the script?  I would exepect to see more errors.

By: Tilghman Lesher (tilghman) 2007-06-01 09:27:29

Perhaps DTMF is not working for your SIP channel, period?

By: Clod Patry (junky) 2007-06-05 17:27:42

cant replicate this, do you ahve the same issues with GET DATA or GET OPTION?

By: Daniel McKeehan (danmckeehan) 2007-06-07 16:22:33

Same exact script when run using the fastagi it works.  When running with a local agi script same commands it doesn't work.  So that rules out the SIP channel being the problem.  I dug through the code and they get handled the same so I don't know whats going on.

By: Joshua C. Colp (jcolp) 2007-10-31 20:45:44

I've labbed this up using the latest 1.4 and it works fine, if this is still an issue please reopen with the complete console output and dialplan logic. Never know!