Answer the question
In order to leave comments, you need to log in
How can I pass the number I called to extensions.conf?
Good afternoon. Need help with Asterisk
Purpose to call the subscriber and voice their debt (debt and number are taken from text.txt)
Where 1-7 numbers are the number and then the debt
[[email protected] ~]# cat text.txt
5315566521
1224532254
[zvon]
exten => s,1,Answer()
exten => s,2,Playback(N)
exten => s,3,AGI(test.sh)
exten => s,5,Hangup()
[[email protected] ~]# cat /var/lib/asterisk/agi-bin/test.sh
echo "SAY NUMBER $x n "
Answer the question
In order to leave comments, you need to log in
The service variable ${EXTEN} contains the dialed number. Make a parameter for the sh-file, to which you pass this variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question