Hi,
I am relatively new to Asterisk and currently getting to know the CLI.
I have a basic setup of which internal calls work without issues and I have a Sip Trunk registered with SIP Gate.
If I try to make an outbound call however I get an error that:
Call from '6001' (10.5.10.10:5060) to extension 'number dialed' rejected because extension not found in context 'from-internal'.
Please note that "number dialed is text I have replaced for the original number (for obvious reasons)- as well as my SIP credentials for the trunk which I have changed, but disregard (as it is registered).
My sip.conf and extensions.conf are below:
sip.conf:
[general]
transport=udp
udpbindaddr=0.0.0.0
register => 23edgg4d:fdd34edd@sipconnect.sipgate.co.uk/23edgg4d
[sipgate]
type = peer
host = sipconnect.sipgate.co.uk
context=from-internal
outboundproxy=sipconnect.sipgate.co.uk
port = 5060
username = 23edgg4d
fromuser = 23edgg4d
fromdomain = sipconnect.sipgate.co.uk
secret = fdd34edd
dtmfmode = rfc2833
insecure = port,invite
canreinvite = no
registertimeout = 600
disallow=all
allow=alaw
allow=ulaw
[6001]
type=friend
context=from-internal
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw
[6002]
type=friend
context=from-internal
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw
Extensions.conf
[from-internal]
include => sipgate
exten=>6001,1,Dial(SIP/6001,20)
exten=>6001,n,VoiceMail(6001@vm-demo,u)
exten=>6002,1,Dial(SIP/6002,20)
exten=>6002,n,VoiceMail(6002@vm-demo,u)
exten=>0XXXXXXXXXX,1,Dial(SIP/sipgate,20)
NOTE: I am not interested in installing the FreePBX GUI as I want to understand the CLI.
Thanks!
I am relatively new to Asterisk and currently getting to know the CLI.
I have a basic setup of which internal calls work without issues and I have a Sip Trunk registered with SIP Gate.
If I try to make an outbound call however I get an error that:
Call from '6001' (10.5.10.10:5060) to extension 'number dialed' rejected because extension not found in context 'from-internal'.
Please note that "number dialed is text I have replaced for the original number (for obvious reasons)- as well as my SIP credentials for the trunk which I have changed, but disregard (as it is registered).
My sip.conf and extensions.conf are below:
sip.conf:
[general]
transport=udp
udpbindaddr=0.0.0.0
register => 23edgg4d:fdd34edd@sipconnect.sipgate.co.uk/23edgg4d
[sipgate]
type = peer
host = sipconnect.sipgate.co.uk
context=from-internal
outboundproxy=sipconnect.sipgate.co.uk
port = 5060
username = 23edgg4d
fromuser = 23edgg4d
fromdomain = sipconnect.sipgate.co.uk
secret = fdd34edd
dtmfmode = rfc2833
insecure = port,invite
canreinvite = no
registertimeout = 600
disallow=all
allow=alaw
allow=ulaw
[6001]
type=friend
context=from-internal
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw
[6002]
type=friend
context=from-internal
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw
Extensions.conf
[from-internal]
include => sipgate
exten=>6001,1,Dial(SIP/6001,20)
exten=>6001,n,VoiceMail(6001@vm-demo,u)
exten=>6002,1,Dial(SIP/6002,20)
exten=>6002,n,VoiceMail(6002@vm-demo,u)
exten=>0XXXXXXXXXX,1,Dial(SIP/sipgate,20)
NOTE: I am not interested in installing the FreePBX GUI as I want to understand the CLI.
Thanks!