Real time configuration: problem retreiving context info


#1

I am trying to set up asterisk realtime with mysql. I have set up a database and a table for sip users and added two users into it. Below are the two records:

mysql> select * from sip ;
±—±--------±-------±---------±--------±-------±---------+
| id | name | type | username | host | secret | context |
±—±--------±-------±---------±--------±-------±---------+
| 1 | mohsin | friend | mohsin | dynamic | mohsin | internal |
| 2 | sjphone | friend | sjphone | dynamic | phone | internal |
±—±--------±-------±---------±--------±-------±---------+
2 rows in set (0.01 sec)

The context for both users is “internal”, but when I make a call, default context is assumed. Here is the message:

Feb 13 18:49:00 NOTICE[22038]: pbx.c:1693 pbx_extension_helper: Cannot find extension context ‘default’

I’ll appreciate any help.