I used the "default" context and "s" extension because $astman refused to originate without a context and extension, and any real extension and context confuses it. They do nothing. All asterisk needs to make the call is the tech/data line for channel, but I have to set callerID so Cisco Call manager knows which MWI to change state. The default context is explained in extensions.conf:
;-------------------------------------------------------------------------------
; default
;
; FreePBX does not use the default context. This context is used by asterisk when
; it has no other information provided and needs to deliver a call. Hitting this means
; there has been some sort of configuration error, or a potential bug somehwere.
; This context can be reached from either internal or external sources.
;
[default]
include => ext-local
exten => s,1,Playback(vm-goodbye)
exten => s,n,Noop(ERROR: FreePBX Does not use the [default] context, confguration error)
exten => s,n,Macro(hangupcall)
;-------------------------------------------------------------------------------
Thanks for the reference for home class, but as you can see that would not work in my case. The extension I am calling does not exist in any context in freePBX, it's just a Cisco Call Manager extension I pull from a database.
So, any idea why the line
$astman->log("Called with: Channel: Local/335298@10.44.1.11, CallerID: 144808", 1);
produces no output on the CLI?