DISA details in CDR

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.
 
Hi

I'm sure FreePBX would have included them had they thought about them first.

Why don't you dive into their site and drop in some suggestions with your methodologies and code, I'm sure they would appreciate it.

Joe
 
Freepbx to actually listen to suggestions.........

.........Hell would freeze over!! I asked for this in version pre 2.3!
 
.........Hell would freeze over!! I asked for this in version pre 2.3!

You asked for it, but for whatever reason it wasn't done, perhaps the workload was too great.

That's the wonderful thing about OpenSource work. YOU can write the code and contribute it back to the community from which you benefit. Thereby building a stronger community for all to learn and grow from.
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top