Hi, Andrew.
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.
If I put this into AMI, the call fails.
ACTION: Originate
CallerID: 144808
Channel: Local/335298@from-internal
Context: from-internal
Exten: 335298
Priority: 1
If I put this into AMI, the call works as expected and the MWI state is changed:
ACTION: Originate
CallerID: 144022
Channel: SIP/335299@BCCMNP02
Context: ext-local-custom
Exten: 231144022
Priority: 1
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 can do it in the dialplan with
Set(CALLERID(num)=144808)
Dial(SIP/335299@10.44.1.11)
I need to do this in PHP though.
Also, note the last line of my code:
$astman->log("Called with: $call_data", 1);
Shouldn't that produce some output in spite of whatever the context is?
Thanks for your help.