by callforamerica » Sun Apr 17, 2016 4:28 am
Update: It works. It just doesn't work when your phone "Client Protocol" is defined as "EXTERNAL". When I changed it back to "SIP" it started working again.
Im experimenting with using Freeswitch to register all phones to only one server, and then asterisk speaks to Freeswitch when it has a incoming call.
I added to vicidial, a dial plan & account carrier entry of:
exten => _XXXX,1,Dial(SIP/freeswitch/${EXTEN})
exten => _XXXX,n,Hangup
[freeswitch]
type=peer
host=my.free.switch.ip
port=5080
disallow=all
allow=ulaw
trustrpid=yes
sendrpid=yes
context=default
When I was using SIP as the phone's client protocol I couldn't get this to work, then when I changed the client protocol to "EXTERNAL" it started to do the call handoffs to freeswitch properly. So I have left that setting ever since.
Now that I know that this is expected behavior, can anyone think of another way to do this using the 'SIP' protocol client setting in the phone, so that I could keep the Agent Alert functionality? Perhaps there's a better dial plan I could use to make this happen.