Hi, we are using a php script called call.php from this blog post.
The script works great with FreePBX, and we’ve used it for many years. Just this week we’ve needed it to work with Call Forwarding. Here is where it gets a little weird and I’m hoping someone might be able to help me.
If I Forward the phone from the handset (Polycom Phone), the click to call works normally. IE: It gets forwarded to the cell phone we have setup.
If instead of forwarding the phone via the handset, I enable Followme through the UCP (our preferred method), the click to call does not get forwarded. The followme does work for other calls to that extension though so I know it’s not that followme doesn’t work normally.
I have a heavily modified version of this script for FreePBX here:
You can see that only the extension number is passed to the script and line 69 constructs the channel to dial. You could edit your script to work like that.
Yea that didn’t work either… changed the following line in call.php
$strChannel = "SIP/".$ext;
to
$strChannel = "local/".$ext;
The only difference now is that the call goes to voicemail, where before it just quit. Still doesn’t abide by the Followme rules in place for that extension.