Summary: | ASTERISK-07147: [patch] AGI scripts send bogus information to Asterisk | ||
Reporter: | mircea (mircea) | Labels: | |
Date Opened: | 2006-06-12 06:54:07 | Date Closed: | 2011-06-07 14:02:35 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_agi |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20060616__bug7335.diff.txt ( 1) 20060619__bug7335.diff.txt | |
Description: | When an AGI script is started, before any of its code is executed, it sends on stdout to Asterisk some bogus information: AGI Rx << Jun 11 07:17:07 WARNING[28118]: asterisk.c:806 ast_set_priority: Unable to set normal priority AGI Tx >> 510 Invalid or unknown command Also, if an Asterisk application that does an SQL SELECT query (e.g. VoicemailMain) was called before the AGI script is executed, the fields of the selected row will be erroneously send to Rx, in the same manner described above. This is probably related to a buffer information which is somehow shared by the Core Asterisk with the AGI system. This problem occurs in version 1.2.7.1.dfsg-2. It does not happen in 1.2.0.dfsg-5. | ||
Comments: | By: Serge Vecher (serge-v) 2006-06-12 09:42:22 what is "dfsg-2" next to the version name? Is this an issue on 1.2.9.1? By: mircea (mircea) 2006-06-12 10:23:52 No, 1.2.7.1.dfsg-2 is the version of my Debian Asterisk package. It's an issue on 1.2.7.1 It works fine on 1.2.0 By: Tilghman Lesher (tilghman) 2006-06-12 10:30:49 Fixed in 1.2 as of 33615; merged to trunk. By: mircea (mircea) 2006-06-13 05:45:18 I see that in revision 33615 it was fixed the 'ast_set_priority' issue. However, if an Asterisk application that does an SQL SELECT query (e.g. VoicemailMain) was called (from extensions.conf or elsewhere) before the AGI script is executed, the fields of the selected row will be erroneously send to Rx, in the same manner described on the 'ast_set_priority' issue. By: Tilghman Lesher (tilghman) 2006-06-15 12:42:28 Do you have an example of this? By: mircea (mircea) 2006-06-16 06:45:50 An example of the MySQL issue: I have the following MySQL table set to work with Asterisk's voicemail system: {sip_username, sip_domain, context, mailbox, password, fullname, email, pager, options, stamp} If VoicemailMain (which uses this table for mailbox information) is called before the execution of an AGI script, this is what it happens, similarly to the 'ast_set_priority' issue: AGI Rx << sip_username => user AGI Tx >> 510 Invalid or unknown command AGI Rx << sip_domain => domain AGI Tx >> 510 Invalid or unknown command AGI Rx << context => default AGI Tx >> 510 Invalid or unknown command AGI Rx << mailbox => 9999999 AGI Tx >> 510 Invalid or unknown command AGI Rx << password => 1234 AGI Tx >> 510 Invalid or unknown command AGI Rx << fullname => John Smith AGI Tx >> 510 Invalid or unknown command AGI Rx << email => john@smith.com AGI Tx >> 510 Invalid or unknown command AGI Rx << options => delete=no AGI Tx >> 510 Invalid or unknown command AGI Rx << stamp => 2006-06-01 10:47:36 AGI Tx >> 510 Invalid or unknown command AGI Rx << Jun 16 13:37:48 WARNING[9473]: asterisk.c:806 ast_set_priority: Unable to set normal priority AGI Tx >> 510 Invalid or unknown command By: Tilghman Lesher (tilghman) 2006-06-16 19:33:08 This probably isn't easily solved, and we may decide not to fix this, but here's an attempt anyway. This patch applies against the latest 1.2 SVN. Please update to the latest 1.2 SVN, apply, compile, and try. By: Serge Vecher (serge-v) 2006-06-19 09:02:35 any luck with Corydon's patch? By: Tilghman Lesher (tilghman) 2006-06-22 10:02:52 Reporter seems to have lost interest. Please ask a bug marshal to reopen if you have feedback about this patch. |