I have a click to call app that uses AMI to originate the call. The way it works is that it originates the call and then connects it to the agent extension. I’ve set the recording to be forced at the extension level. What I have noticed is that the recording doesn’t happen. When I look at the CDR it shows the external phone number for both the destination and source. That seems to me is why it’s not recording because it never matches the extension rule to force the recording.
The existing code is as follows:
$channel = “SIP/” .$user->sip_extension; // $user->sip_extension is something like, “202”.
$context = “from-internal”;
$priority = 1;
$extension = Input::get(‘phone_number’); // Where phone_number is the user’s extension, e.g. 202.
We tried the following code:
$channel = " Local /".$user->sip_extension.”@from-internal”;
In the case of the first snip, we don’t get the call recording because it shows the external number as the source and destination. In the case of the second snip it does properly record the call however, if the internal user fails to pick up the call, it will go to their voicemail and connect that to the external number, which isn’t desired at all.
We are using FreeePBX 184.108.40.206