ok well go and hammer on the Asterisk team to figure out what is up. In the mean time, if you could, open a new bug about the failure mode on 1.6.2 mentioning it is an * issue, and I’ll get this checked in against that bug and we’ll just compensate for the fact that * has issues for now on some versions.
I put your patch and opened ticket 4096. I’ll reopen my ticket again at digium. I’m going to put in the exact generated dialplan and tell them it is broken. They’ve been a pain to get to accept the ticket before but I’ll do what I can.
I posted a bug and after looking through it extensively it appears the dialplan from FreePBX is correct. The problem now looks like it is in the ExecIf statement of 1.6.2. I reopened a ticket with Asterisk which can be followed on Asterisk issue tracker. I’m going to run a few more tests to verify the issue and post more information to that ticket.
OK, I did something very simple. I replaced the fax-process.pl line generated from the dialplan and replaced it with a simple script. That script executes.
fax-process.pl is not working in 1.6.2. I don’t know why and give up. It has taken way too much of my time already.
If just the latter, as mentioned in the ticket, we can change how we call it if need be if the issue is a general issue and we resolve it down to not working when called by ExecIf, until we get to root cause of why in that scenario.
The ExecIf is working. I created simple scripts (below). When I call the script with the ExecIf in lieu of the fax-process.pl generated statement, it all works fine. But for some reason the ExecIf statement with fax-process.pl is not working.
So this points back to something in the generated statement that 1.6.2 doesn’t like. Philippe, you’ve spent a lot of time on this already. I’m not sure you want to spend any more time on it…I know not excited about it!
Just as an FYI, here was the dialplan I created which worked.
temp2.sh is
#!/bin/bash
ls -l /tmp > /tmp/temp2.txt
When this dialplan executes both temp.txt and temp2.txt exist in /tmp. This indicates the ExecIf is working ok. I did make sure I purged /tmp before calling the extension.
The quote issue has been resolved by asterisk. The ticket, 0016842, has a patch attached that resolves the quoting problem. I tested the patch and it worked fine. I’m getting ready to test the patch for the ExecIf to see if that resolves the problem.
thanks for staying on top of this. We’ll probably leave the code as is in FreePBX for quite some time as it will take a long time for that bug to works its way out of installed Asterisk systems and the current dialplan works just fine, one extra instruction isn’t going to hurt anything