change iaxmodem configs and related asterisk conf to use a random secret or registration fails sometimes
This commit is contained in:
parent
3b1faab19a
commit
a542da7dc5
@ -79,6 +79,9 @@ MYSQLASTERISKUSERPASSWORD=amp109
|
|||||||
|
|
||||||
LOAD_LOC=/usr/src/
|
LOAD_LOC=/usr/src/
|
||||||
|
|
||||||
|
#make a random password for the iaxmodems - i know this isn't perfect but it is acceptable for me at this time, and far better than a hardcoded password in a script
|
||||||
|
IAXPWD=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c10`
|
||||||
|
|
||||||
cd $LOAD_LOC
|
cd $LOAD_LOC
|
||||||
|
|
||||||
# upgrade first then install some dependencies
|
# upgrade first then install some dependencies
|
||||||
@ -115,6 +118,7 @@ port 457$COUNT
|
|||||||
refresh 300
|
refresh 300
|
||||||
server 127.0.0.1
|
server 127.0.0.1
|
||||||
peername iax-fax$COUNT
|
peername iax-fax$COUNT
|
||||||
|
secret $IAXPWD
|
||||||
cidname Incredible PBX
|
cidname Incredible PBX
|
||||||
cidnumber +0000000000$COUNT
|
cidnumber +0000000000$COUNT
|
||||||
codec ulaw
|
codec ulaw
|
||||||
@ -127,6 +131,7 @@ type=friend
|
|||||||
host=127.0.0.1
|
host=127.0.0.1
|
||||||
port=457$COUNT
|
port=457$COUNT
|
||||||
context=from-fax
|
context=from-fax
|
||||||
|
secret=$IAXPWD
|
||||||
requirecalltoken=no
|
requirecalltoken=no
|
||||||
disallow=all
|
disallow=all
|
||||||
allow=ulaw
|
allow=ulaw
|
||||||
|
Loading…
Reference in New Issue
Block a user