in asterisk.conf there is
"astagidir => /var/lib/asterisk/agi-bin"
it can be used for storing any scripts/programs fo *, it is suggested for storiong AGI scripts there
example: /var/lib/asterisk/agi-bin/dtmf2text.file.sh

Thanks for your help but where is should put this bash script ,can you guide me please

Regards

 

"...receiving digits from IVR through dtmf and store it on a text file "
short idea:
 1 IVR start
 2 set(number=)
 3 playback(press_digit_or_#_to_finish)
 4 (pressed) set(number=${number}${digit_pressed})
 5 playback(press_another_digit_or_#_to_finish)
 6 if digit pressed goto(pressed[point 44])
 7 if # pressed execute System(put_string_with_pressed_didgits_into_text_file.sh ${digit_pressed} ${calleridnum})

sh script
#!/bin/bash
digits=$1
number=$2
echo "$1" >> $2.txt

Dear

 

 I want to make a billing recharge through receiving digits from IVR through dtmf and store it on a text file ,

 

How can todo that ?

 

Regards

 

 

 


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to