johnakabean
New Member
- Joined
- Oct 13, 2008
- Messages
- 3
- Reaction score
- 0
I have modified piaf to use password md5 hashes and report them in the accountcode field when used in a disa. I had someone get ahold of my passcode, used for when out of office, and run amuck. I couldn't tell which one it was though as it wasn't recorded in the cdr reports.
In cdr_mysql.conf:
userfield=1
in extensions_override_freepbx.conf:
[disa]
include => disa-custom
exten => 1,1,Set(RESCOUNT=1)
exten => 1,n(loop),GotoIf($[ ${RESCOUNT} > 5]?end)
exten => 1,n,Read(RRES,press-1,1,,1,3,,)
exten => 1,n,Set(RESCOUNT=$[${RESCOUNT}+1])
exten => 1,n,GotoIf($["x${RRES}"="x"]?loop)
exten => 1,n,Authenticate(/etc/asterisk/disa.conf,am,16)
exten => 1,n,Set(_DISA="disa,1,newcall")
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(SetCDRUserField=${CDR(accountcode)})
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=Hg)
exten => 1,n,Set(TIMEOUT(digit)=3)
exten => 1,n,Set(TIMEOUT(response)=20)
exten => 1,n,Set(CALLERID(all)=${CALLERID(all)})
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup
in disa.conf:
testuser:81dc9bdb52d04dc20036dbd8313ed055
why freepbx didn't implement these simple steps will make me scratch my head for a while. I will be working on a php disa script to calculate the md5 hashes and write them to disa.conf
OH, and i also told the system to preserve the original caller id above.
In cdr_mysql.conf:
userfield=1
in extensions_override_freepbx.conf:
[disa]
include => disa-custom
exten => 1,1,Set(RESCOUNT=1)
exten => 1,n(loop),GotoIf($[ ${RESCOUNT} > 5]?end)
exten => 1,n,Read(RRES,press-1,1,,1,3,,)
exten => 1,n,Set(RESCOUNT=$[${RESCOUNT}+1])
exten => 1,n,GotoIf($["x${RRES}"="x"]?loop)
exten => 1,n,Authenticate(/etc/asterisk/disa.conf,am,16)
exten => 1,n,Set(_DISA="disa,1,newcall")
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(SetCDRUserField=${CDR(accountcode)})
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=Hg)
exten => 1,n,Set(TIMEOUT(digit)=3)
exten => 1,n,Set(TIMEOUT(response)=20)
exten => 1,n,Set(CALLERID(all)=${CALLERID(all)})
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup
in disa.conf:
testuser:81dc9bdb52d04dc20036dbd8313ed055
why freepbx didn't implement these simple steps will make me scratch my head for a while. I will be working on a php disa script to calculate the md5 hashes and write them to disa.conf
OH, and i also told the system to preserve the original caller id above.