nick wu
nick wu

Reputation: 151

how to add one SIP Extension by command line in Asterisk

I could add one SIP Extension in FreePBX webUI like below:

Now I want to one sip extension by command line. how to do it?

Upvotes: 1

Views: 11098

Answers (3)

Zaxter
Zaxter

Reputation: 3035

You could do it using asterisk cli, using something like this:

$ asterisk -rx "dialplan add extension 1111,1,Dial,SIP/170.21.20.100/1111 into local"

Upvotes: 0

moonstruck
moonstruck

Reputation: 2784

There is no way to add sip extension (entity) from command line.

You can add sip entity(peer/friend/user) in /etc/asterisk/sip.conf /etc/asterisk/sip_custom.conf Then reload sip module to take effect. cli command: module reload chan_sip.so

Upvotes: 1

arheops
arheops

Reputation: 15259

Freepbx is webgui. It not provide tool for that.

But you can use asterisk realtime architecture or change db and do amp_engine reload.

Upvotes: 0

Related Questions