[asterisk-users] Realtime trouble with contex
Nikita Olenets
zeon at zeon.kiev.ua
Mon Oct 30 05:43:05 MST 2006
Hello, Asterisk.
I am currently using Asterisk (asterisk-1.2.13) and asterisk-addons-1.2.3_1
on FreeBSD 6.1-RELEASE-p10
So, after setup asterisk for realtime extension:
res_mysql.conf:
[general]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = asterisk
dbpass = asterisk
dbport = 3306
dbsock = /tmp/mysql.sock
res_odbc.conf:
[mysql]
enabled => yes
dsn => asterisk
username => asterisk
password => asterisk
pre-connect => yes
extconfig.conf:
sipusers => mysql,asterisk,sip_buddies
sippeers => mysql,asterisk,sip_buddies
voicemail => mysql,asterisk,sip_buddies
extensions => mysql,asterisk,extensions
queues => mysql,asterisk,sip_buddies
queue_members => mysql,asterisk,sip_buddies
extensions.conf:
[office]
include => demo
;exten => 333,1, Macro(stdexten,333,SIP/333)
;exten => user1, 1, Goto(333|1)
;exten => 222,1, Macro(stdexten,222,SIP/222)
;exten => user1, 1, Goto(222|1)
;exten => 201,1, Macro(stdexten,201,SIP/201)
;exten => user2, 1, Goto(201|1)
;exten => 202,1, Macro(stdexten,202,SIP/202)
;exten => user3, 1, Goto(202|1)
switch => Realtime/office at extensions
from user 333 i dialing 222 and get this message:
Executing Macro("SIP/333-086e2000", "stdexten,222,SIP/222")
Oct 30 14:29:39 WARNING[65203]: app_macro.c:160 macro_exec: No such context 'macro-stdexten,222,SIP/222' for macro 'stdexten,222,SIP/222'
if i uncomments lines:
exten => 333,1, Macro(stdexten,333,SIP/333)
exten => user1, 1, Goto(333|1)
exten => 222,1, Macro(stdexten,222,SIP/222)
exten => user1, 1, Goto(222|1)
in file extensions.conf, this message absent.
in mysql config:
mysql> select * from extensions;
+----+---------+-------+----------+-------+----------------------+
| id | context | exten | priority | app | appdata |
+----+---------+-------+----------+-------+----------------------+
| 1 | office | 333 | 1 | Macro | stdexten,333,SIP/333 |
| 2 | office | user1 | 1 | Goto | 333|1 |
| 3 | office | 222 | 1 | Macro | stdexten,222,SIP/222 |
| 4 | office | user2 | 1 | Goto | 222|1 |
+----+---------+-------+----------+-------+----------------------+
how to solve this problem?
Thanks.
--
Senior Systems Engineer
Nikita Olenets zeon at zeon.kiev.ua
ZEON-UANIC
ZEON-RIPE
More information about the asterisk-users
mailing list