Certifique-se de adicionar fromdomain=<your 3x domain>
e qualify=yes
ao seu sip.conf
e é type=peer
da sua tarefa. Final sip.conf
register=>400:[email protected]/from-3cx
[3cx]
type=peer
dtmfmode=rfc2833
insecure=port,invite
qualify=yes
canreinvite=no
directmedia=yes
disallow=all
allow=ulaw
allow=g729
defaultuser=400
secret=secret
context=from-3cx
[phone-connected-to-asterisk]
type=friend
host=dynamic
transport=udp
secret=secret
disallow=all
allow=ulaw
context=from-asterisk
insecure=port,invite
E adicione o contexto de entrada ao seu extensions.conf
. % Finalextensions.conf
:
[general]
static=yes
writeprotect=yes
clearglobalvars=yes
[default]
include => incoming
[incoming]
include => from-3cx
[from-asterisk]
exten => _X.,1,Dial(SIP/${EXTEN}@3cx,45)
[from-3cx]
exten => _X.,1,Progress()
exten => _X.,n,Dial(SIP/${EXTEN},60,gt)
exten => _X.,n,Hangup()