However, it does not originate the call. All I see in the CLI with verbosity and debug on 30 is:
[2015-10-18 14:13:39] DEBUG[48771]: manager.c:5271 process_message: Running action ‘Login’
[2015-10-18 14:13:39] DEBUG[48771]: manager.c:5271 process_message: Running action ‘Originate’
Nothing in the freepbx.log.
Seems like I’m not passing the channel variables correctly. Does anyone have an example?
The call completes correctly. Now I just need to do that in PHP. Do you have an examples of using $astman->Originate($call_data); ? Is my array OK as a param for $astman?
I did read your post, and I changed the Context to “from-internal” and the Channel to “Local/335298@from-internal” but I got the same result. Just says, “Originate” in the CLI.
This call is outbound to a Cisco Call Manager trunk 10.44.1.11 (I can also use the trunk name, like SIP/335298@BCCMNP02). Extension 335298 turns the MWI light on for CallerID 14408.
My understanding is the tech has to be SIP because BCCMNP02 is a SIP trunk.
When I use Local/335298@from-internal in AMI, the MWI on target extension does not change.
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.