Wow, that was intense. After 6 hours of head banging, I got it working. Problems turned out to be Asterisk 1.6 related.
1) If you run Asterisk 1.6.x, you'll need to add 'originate' privs (new in 1.6) to your manager user:
Code:
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate
... otherwise the 'originate' command will get rejected with "Permission denied", although you won't see this in the mailmanager log, you'll just see a generic originate failure. I'm not sure if it needs originate on both read and write, I just put it on both to be sure.
2) If you run 1.6.0.3, you'll need to patch your Asterisk as per this bug:
0014208: Channel not specified - Asterisk-1.6.0.3 - Digium Issue Tracker
... (file you need is main/manager.c) then make, make install and restart Asterisk. Without this, the 'originate' command always gets rejected with "Channel not specified", even though it is specified.
If you run FreePBX in vanilla form, you'll probably need to config with:
Code:
<property name="astDialContext">from-internal</property>
<property name="astDialChannelType">Local</property> Whoo HOOOO! It works.
Thanks chlauber, this is awesome.
-- hugh