[asterisk-users] account code
ricky gutierrez
xserverlinux at gmail.com
Mon Mar 2 22:53:19 CST 2015
Hi list , I have a question with account codes, all my outgoing calls
are authenticated, but now the boss wants to monitor these calls with
the codes.
example: maria has an extension "110", but peter was in place and use
the phone maria , maria then says that she did not make that call to
that number of cell.
like to know who made it?, I think the pin code is my friendo , my
users have a four-digit pin to authenticate, I'm thinking of using the
cdr field userfield
as I can do to read the pin code and write it there?
[call-out-analog]
exten => _9.,1,Authenticate(/var/lib/asterisk/key.txt,am,4)
exten => 9.,n,Set(CDR(userfield)=pin-users)})
exten => _9.,n,Set(__SIP_CODEC=alaw)
exten => _92XXXXXXX,n,Dial(SIP/${EXTEN:1}@gw,40,rRT)
same => n,Busy(3)
same => n,Hangup
any idea?
regardss
--
rickygm
http://gnuforever.homelinux.com
More information about the asterisk-users
mailing list