FreePBX | Register | Issues | Wiki | Portal | Support

Create extensions : Solved


(me) #1

Hello,

How can i create extentions remotely via http or command line, api … Thank you


(Lorne Gaetz) #2

You can use fwconsole command with bulkimport:
https://wiki.freepbx.org/pages/viewpage.action?pageId=37912685#fwconsolecommands(13+)-BulkImport

If you need to delete an extension, you can use this script:


#3

If you have ssh access to the PBX but prefer working in the GUI, use ssh to forward whatever HTTP or HTTPS port your system uses. For example, forward local port 80 to remote 127.0.0.1:80 , log in as usual, then open your browser to
http://127.0.0.1:80
and the GUI should appear.

If you don’t have access via ssh, what access to the site do you have (VPN, access to its router, etc.)?

If you don’t have any access, perhaps someone at the site can help you, e.g. allow you to connect to their PC with TeamViewer or similar, then run a browser on their machine to do your work.

If the site is unattended and you have no access, you are probably out of luck.


(Andrew Nagy) #4

Or use FreePBX 15 that has a full API


(me) #5

i have access to the freepbx via public ip. but i need a script that can create extensions without using csv file…
Are you sure we can do it with freepbx15 ?


(Andrew Nagy) #6

Maybe you should ask the project lead of FreePBX?


(me) #7

Please can you create same script but to create an extension ??


(me) #8

Now i have freepbx 15, and when i see the api module, i have this : gql:core:write:extension GraphQL , it is the correct way to create extension ?

Thank you for your help !


(me) #9

Solved with bulk handler. Thank you all.


(system) #10

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.