1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Update README.adoc

This commit is contained in:
A Holt 2021-08-18 09:49:07 -04:00 committed by GitHub
parent 52d049eb9f
commit 67a6dad5e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,36 +134,41 @@ image::files/linphone_connected.jpg[width='33%']
** Please create a https://en.wikipedia.org/wiki/Privacy_policy[Privacy Policy] against abusive surveillance, and explain it to the people in your community. Strongly consider giving them access to their own statistics with the <<#UCP,User Control Panel>> summarized further below.
=== Try using our script to create extensions and make a quick console call
=== Automatically create extensions, automated test call
. The script *asterisk_test*
* creates two extensions *301* and *302* and configures a dialplan for routing calls (as specified in pjsip_custom.conf and extensions_custom.conf located at: `roles/pbx/templates`)
* makes a test call to extension 1000 (that has no physical device associated with it) that plays some sound files.
* after the script is complete, it deletes the extensions and reverts file changes to restore asterisk to its original state. If you'd like your changes to persist, read the options below.
. Try the script link:templates/iiab-asterisk-test[*iiab-asterisk-test*] to:
* Create two extensions *301* and *302* and configures a dialplan for routing calls (as specified in link:templates/pjsip_custom.conf[pjsip_custom.conf] and link:templates/extensions_custom.conf[extensions_custom.conf], located at `/opt/iiab/iiab/roles/pbx/templates`).
* Make a test call to extension 1000 (that has no physical device associated with it) that plays some sound files.
* After the script completes, it deletes the extensions and reverts file changes to restore asterisk to its original state. If you'd like your changes to persist, read the options below.
. Usage
* `sudo ./asterisk_test`
* `sudo ./iiab-asterisk-test`
+
Default option - Executes the complete script and reverts file changes done during the test.
* `sudo ./asterisk_test retain`
* `sudo ./iiab-asterisk-test retain`
+
Extensions created during the test are retained. Files are not reverted after the test.
+
You may try making calls to extension 302 or 1000 after registering your softphone as <<#Register_Extension,mentioned above>>. The password for the extension is present in pjsip_custom.conf, feel free to change it before executing the script.
* `sudo ./asterisk_test revert`
* `sudo ./iiab-asterisk-test revert`
+
Use this option if you executed the script using the *retain* option, but would like to have the changes reverted now. This will only revert the changes to the files and restart asterisk, no other actions are performed.
* `sudo ./asterisk_test restart`
* `sudo ./iiab-asterisk-test restart`
+
Restarts asterisk, no other actions are performed
* `sudo ./asterisk_test testcall`
* `sudo ./iiab-asterisk-test testcall`
+
Makes a test call from asterisk console to extension 1000 and confirms from the logs if the call was successful.
+
_Note: This will only work if you've created extension 1000 manually, or using FreePBX or using the *retain* option of this script_
You can read more about creating _extensions_ and _dialplans_ https://wiki.asterisk.org/wiki/display/AST/Creating+SIP+Accounts[here]
Read more about creating _extensions_ and _dialplans_ https://wiki.asterisk.org/wiki/display/AST/Creating+SIP+Accounts[here].
=== Troubleshooting