Summary:ASTERISK-01294: Loss of the agi-name when calling an exec application.
Reporter:rch (rch)Labels:
Date Opened:2004-03-25 16:13:37.000-0600Date Closed:2008-01-15 14:49:45.000-0600
Versions:Frequency of
Environment:Attachments:( 0) pbx.c.diff
Description:When executing applications from an agi script, some information of the channel is lost and then the next time that the same agi script calls the VERBOSE application the log appears, but starting with the string: (NULL) instead of the name of the agi script.


The function pbx_exec is called in the pbx.c file.
This function overrides the values in the variables c->data and c->appl of the channel passed as parameter.

I have patched the pbx.c saving the variables before overriding and restoring their original values after the execution of the application.
The diff file is uploaded.

In the original code the variables are set to null after the excution of the aplication. I'm not sure if this is a necesary setting for some part of the asterisk. My system is working fine with my patch.
Comments:By: Mark Spencer (markster) 2004-04-04 17:30:53

Fixed in CVS, thanks!

By: Digium Subversion (svnbot) 2008-01-15 14:49:45.000-0600

Repository: asterisk
Revision: 2615

U   trunk/pbx.c

r2615 | markster | 2008-01-15 14:49:44 -0600 (Tue, 15 Jan 2008) | 2 lines

Save appl and data around exec (bug ASTERISK-1294)