We have a call centre and record calls using the MixMonitor.
We need to be able to transfer some calls externally, but when we do so the call recording continues. This is fine, apart from calls to a specific number. What I've done to try to resolve this is create a custom extension. When we want to transfer the call externally to this particular number, we can transfer to this extension instead which can stop the recording and transfer on.
If I call the extension (2123
) from my own personal extension it seems to work as expected and calls the external number. If I am on the phone currently (both external and internal calls) and I try to transfer the call to this extension, I get a voice message saying "The number you have dialled is not in service. Please check the number and try again.").
My config (in /etc/asterisk/extensions_custom.conf
) is:
[from-internal]
; For the purpose of SO, I've removed other custom extensions here
exten => 2123,1,Answer
exten => 2123,1,StopMixmonitor()
exten => 2123,n,Set(CALLERID(num)=[number-removed])
exten => 2123,n,Dial(SIP/[sipname-removed]/[externalnumber-removed],120,r)
exten => 2123,n,Hangup()
I'm using the FreePBX distro, FreePBX version 12.0.76.3, Asterisk version 11.18.0.
Can anyone help me fix the issue so a transfer to this extension works too? Thanks for your help.
I'm also open to alternative solutions to the same problem, but I can't help thinking that I'm 99% of the way there with this solution already.
EDIT: I'm suspicious that the problem is to do with the [from-internal]
, but am not sure what it should be instead.