First, I am a sysadmin and I ca nscript my way around servers (as you would ) but a complete noob wrt asterisk and telephony in general.
As part of a larger project, I would like to:
1- initiate an outgoing call
2 - play a audio message, prompting the recipient to enter a code via dialpad
3 - make this code available to a script, external to asterisk
I am sure this is possible, but I would like some pointers where to start as (have I already mentioned it? ) I am a complete noob wrt asterisk!
Thanks
Y
PS: We are using Asterisk 1.6, although this may change in the near future.
start by understanding & setting up a configuration with 2 phones making calls to each other through asterisk
find a sip provider to terminate your calls, and have your phones use it
implement a call file : voip-info.org/wiki/view/Aste … o-dial+out or use asterisk management interface to trigger the call and patch it to a context that will do what you want
done, I can now initiate calls from Linphone hooked to asterisk & receive from external phones (my mobile et al). Same for ‘call files’. This is sufficent for that I need to do.
[quote=“cerien.jean”]
find a sip provider to terminate your calls, and have your phones use itt[/quote]
we already have an external provider & I have now configured my asterisk dev environment (11, shiny new installation on Centos 6 VM) to use it, see above.
[quote=“cerien.jean”]
3. implement a call file : voip-info.org/wiki/view/Aste … o-dial+out or use asterisk management interface to trigger the call and patch it to a context that will do what you want[/quote]
dropping ‘call files’ in /var/spool/asterisk/outgoing/ now working
I need to study the extensions.conf better, but it all now comes together! Asterisk is looking better and better
for whoever may come across this thread in the future, having a similar requirement, this is a working start:
call file:
Channel: IAX2/<my sip provider as in iax.conf>/<recipients tel number>
CallerID: "abcdefg" <12356789>
MaxRetries: 1
RetryTime: 10
WaitTime: 45
Context: request-pass
Extension: s
Priority: 1
In extensions.conf:
[request-pass]
exten => s,1,Set(TIMEOUT(digit)=30)
same => n,Set(TIMEOUT(response)=30)
same => n,Answer
same => n,Wait(2)
same => n,Read(numbers,/usr/share/asterisk/sounds/agent-pass,4,,,60)
same => n,NoOp(${numbers})
same => n,System(/bin/echo ${numbers} >> /tmp/deleteme)
same => n,Playback(/usr/share/asterisk/sounds/auth-thankyou)
same => n,Congestion