[Asterisk-Users] astcc: need partial pin code
Ronald Wiplinger
ronald at elmit.com
Thu Apr 27 09:25:03 MST 2006
Benchev wrote:
> Hi Ronald,
> Small mistake, see bellow:
> Benchev
>
>> Just to give you an idea
>> I would suggest you to make two .agi files:
>> astcc.agi and astcc-disa.agi
>> In astcc.agi you'd leave everithing as it is, and enable
>> PIN =YES through the astcc-admin.cgi.
>> Thus you could dial without interogation:
>> exten => _1NXXNXXXXXX,1,DeadAGI(astcc.agi,${CALLERIDNUM},${EXTEN},4)
>>
>> astcc-disa.agi is a copy of astcc.agi so
>> # cp astcc.agi astcc-disa.agi.
>> # pico astcc-disa.agi.
>>
> pico astcc.agi.
>
>> Find the line:
>> # At this point we have a valid card number.
>> and coment out everything until:
>> # At this point we have a valid card and pin number.
>> You can dial from outside:
>> exten => 1234567894,1,DeadAGI(astcc-disa.agi)
>> and will de asked for cardnumber and pin.
>>
>> Some mobile phones support "w" inside of a dialstring i.e.
>> 1234567894w123456789012#w159753# .Fist part is the
>> DID you dial to enter * .
>> * asks for a cardnumber and the mobile waits for you on "w"
>> to push"Enter",
>> * asks for a pin and phone waits for you on "w" to push "Enter"
>> for the last string.
>> After all that you would here:Please enter the number you wish to dial...
>>
How about this solution:
1. we make a sym link instead of a copy. That avoids later update
problems!!!
ln -s astcc.agi astcc-disa.agi
2. instead of
if ($config{'pinstatus'} eq "YES") {
(please help me to write it, but what I want is:)
if ("my called name is 'astcc-disa' ") {
bye
Ronald Wiplinger
More information about the asterisk-users
mailing list