Hello, I started using Asterisk 1 week ago, I was reading a lot and until now but I wasn’t finding anything that would help me, to make a Dialplan which later calls the User/phone back and then continues in the new call and not how it works right now for me that it calls me and then hangs up again.
i started setting a small server up, because the Headadmin, is a older Telephone expert and i am more programming etc., and he wanted a small Server to check in several ways if the connections are working, how good they are etc.
if someone wants some code:
exten => 111,1,Answer(100)
exten => 111,n,Playback(beep)
exten => 111,n,Playback(/usr/share/asterisk/sounds/custom/Signal)
exten => 111,n,wait(1)
exten => 111,n,Playback(/usr/share/asterisk/sounds/custom/willkommen_final)
exten => 111,n,Playback(beep)
exten => 111,n,WaitExten(3)
exten => 111,n,Goto(111,1)
exten => 1,1,Noop(user pressed 1)
exten => 1,n,Playback(beep)
exten => 1,n,While(n<10)
exten => 1,n,Playback(/usr/share/asterisk/sounds/custom/MIKESINGER-ESWIRDZEIT_G711.org_)
exten => 1,n,EndWhile()
exten => 1,n,Playback(/usr/share/asterisk/sounds/custom/bye)
exten => 1,n,Hangup()
exten => 2,1,Noop(user pressed 2)
exten => 2,n,Playback(beep)
exten => 2,n,Playback(/usr/share/asterisk/sounds/custom/hinweis)
exten => 2,n,Echo()
exten => 2,n,Playback(/usr/share/asterisk/sounds/custom/bye)
exten => 2,n,Hangup()
exten => 3,1,Noop(user pressed 3)
exten => 3,n,System(echo “Channel: SIP/${CALLERID(num)} \nCallerID: “Klingeltest” <789> \nContext: klingeltest \nExtension: 24 \nMaxRetries: 1 \nRetryTime: 9” > /tmp/${UNIQUEID}.call)
exten => 3,n,Playback(beep)
exten => h,1,System(touch -t 200001010101 /tmp/${UNIQUEID}.call)
exten => h,n,System(sleep 5)
exten => h,n,System(mv /tmp/${UNIQUEID}.call /var/spool/asterisk/outgoing/)
exten => h,n,Wait(3)
exten => h,n,Playback(/usr/share/asterisk/sounds/custom/klingeltest-erfolgreich)
exten => h,n,Playback(/usr/share/asterisk/sounds/custom/bye)
exten => h,n,Hangup