(Solved )Real time MySQL: How to make real-time sip users, stored in the database MySQL, take dial-plan from extensions.conf?

i have successfully configured real-time and sip users are being registered and calls are being run perfectly all through database. Now i want to register sip buddies same through database but want them to take dial-plan from extensions.conf. Please give me some direction? Many thanks.

Following are my file configurations.

Extconfig.conf
sippeers=>mysql,general,sip_buddies
extensions=>mysql,general,extensions
queues =>mysql,general,queue_table
queue_members =>mysql,general,queue_member_table

sip.conf
[general]
context=my-sip
bindport=5060
bindaddr=0.0.0.0
disallow=all
allow=gsm,g729
allow=ulaw

Extension.conf
[general]
[globals]
;
[my-sip]
switch=>Realtime

The following changes made it possible for the real-time sip users to get the extensions from extensions.conf.

  1. Removed the line “extensions=>mysql,general,extensions” from Extconfig.conf.

  2. Removed
    "[general]
    [globals]
    ;
    [my-sip]
    switch=>Realtime" from extensions.conf

  3. Added the context [my-sip] in the extensions.conf file.