We have Just installed FreePBX and it works great , we have created extensions by going on to the freePBX GUI page . However , Can anyone tell me if the Extensions can be created programmatically that is via asterisk CLI , I do know that we have a commands which are dialplan add extension and dialplan save …
I have tried adding extensions from asterisk cli with the below command :
asterisk -rx “dialplan add extension 78787,1,Dial,SIP/000.000.0.00/78787 into default”
It returns me this :
Extension ‘78787,1,Dial,SIP/172.16.0.62/78787’ added into ‘default’ context.
Now when i got back to the FReePBX GUI and go to extensions page I cannot see this extension . Can you please tell me what am i missing ?
Sincerely appreciate your Help .
They can, but you will need to create both the dial plan in the asterisk db first and add all extra necesasary data to the asterisk database, berkely database until asterisk 10 which uses sqlite. If you use FreePBX you will need to update the sip/iax, devices and user tables in the asterisk database in mysql to suit, the sip/iax entries are tuples representing the individual elements in the extension set of the asterisk db, rather than flat entries so it is very far from trivial. I suggest you add it from the GUI first, explore the mysql tables to see what needs reverse enginnering there.
That is why most other folks are happy to use the GUI, but I can assure you that it works…
how can i achive this functionality adding a new extension on both asterisk and freepbx databases beacuse i am unbale to call from zoiper phone to anothe zoiper phone i am getting error like
ERROR[C-00000011]: pbx.c:4055 ast_func_read: Function DB not registered
[2013-09-12 14:34:04] WARNING[C-00000011]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected ‘>’, expecting $end; Input:
[2013-09-12 14:34:04] WARNING[C-00000011]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
[2013-09-12 14:34:04] ERROR[C-00000011]: pbx.c:4055 ast_func_read: Function DB not registered
[2013-09-12 14:34:04] ERROR[C-00000011]: pbx.c:4055 ast_func_read: Function IF not registered
Again, . . . I suggest you add it from the GUI first, explore the mysql tables to see what needs reverse engineering there. . . Add to that, explore the asteriskdb and /etc/asterisk/voicemail.conf and make those additions also.
and . . That is why most other folks are happy to use the GUI