Record dialpad response by recipient in outgoing call?

Hi everyone,

First, I am a sysadmin and I ca nscript my way around servers (as you would :smiley: ) 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? :blush: ) I am a complete noob wrt asterisk!

Thanks

Y

PS: We are using Asterisk 1.6, although this may change in the near future.

the best way to start is here: www.asteriskdocs.org

  1. start by understanding & setting up a configuration with 2 phones making calls to each other through asterisk

  2. find a sip provider to terminate your calls, and have your phones use it

  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

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”]

  1. 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 :smile:

I need to study the extensions.conf better, but it all now comes together! Asterisk is looking better and better :smiley:

thanks for the help

Y

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

add salt and spices to taste :wink:

Answer doesn’t do anything, and I suspect nor does Congestion.