DTMF from Command Line?

Hello,

I need to generate sequences of touchtones to a piece of hardware sitting out on the PSTN.
I have an Asterisk server running on my Linux server with a SIP trunk going to the outside world.
Would like to do this as a command line tool, which I would write in Perl.

Basically, I would like my command line tool to initiate a phone call to the remote station,
push out a sequence of DTMF tones - and pauses in the right places - and then hang up.

Is this doable with Asterisk?

Thanks in advance - Jerry Kaidor

Originate and PlayDTMF (need to check if PlayDTMF will take a string".

You might want to look at creating a call file that uses a dialplan to do this.

I have a pager I send a page to using this call file:

Channel: LOCAL/PAGERNUMBER@from-internal-pager
MaxRetries: 2
RetryTime: 60
WaitTime: 15
Context: alert-pager
Extension: s
Priority: 1
Set: pagenum=5551234

here is my alert-pager context

; This is used for the AlphaNumeric Pager
[alert-pager]
exten => s,1,NoOp(Paging to ${pagenum})
exten => s,2,Wait(4)
exten => s,3,SendDTMF(${pagenum}#)
exten => s,4,Hangup