I tried all things , but asterisk realtime is not loading extensions and throwing below error
console> chan_sip.c:26458 handle_request_invite: Call from ‘2000’ (xxx.xxx.xxx.xxx:57805) to extension ‘1000’ rejected because extension not found in context ‘from-siptrunk’.
Realtime mysql is connected, i checked it
console> realtime mysql status
asterisk connected to testdb@127.0.0.1, port 3306 with username testuser for 19 minutes.
Here is res_config_mysql.conf
[asterisk]
dbhost = 127.0.0.1
dbname = testdb
dbuser = testuser
dbpass = testpass
dbport = 3306
dbsock = /tmp/mysql.sock
dbcharset = latin1
My sip.conf
[2000]
type=friend
host=dynamic
secret=2000
dtmfmode=rfc2833
disallow=all
context=from-siptrunk
allow=ulaw
allow=alaw
transport=udp,tcp
insecure=very,port,invite
qualify=yes
dtmfmode=rfc2833
canreinvite=no
callprogress=yes
nat=yes
extensions.conf
[from-siptrunk]
switch => Realtime/@extensions
[test_context]
exten => s,1,Ringing()
exten => s,n,Answer()
exten => s,n,Playback(goodbye)
exten => s,n,Hangup()
extensions table
mysql> select * from extensions;
±—±--------------±------±---------±-----±------------+
| id | context | exten | priority | app | appdata |
±—±--------------±------±---------±-----±------------+
| 1 | from-siptrunk | 1000 | 1 | Goto | test_context,s,1 |
| 2 | from-siptrunk | 2000 | 1 | Goto | test_context,s,1 |
±—±--------------±------±---------±-----±------------+
2 rows in set (0.00 sec)
Mysql is connected, sip is registered , call is landing on the server, but its not able to load extension, Please help me to resolve this. Thanks in advance.