[asterisk-users] Ringing for incoming call

Andrew Thomas andy at datavox.co.uk
Thu Jan 14 10:11:40 CST 2010


exten => did,1,Answer
exten => did,n,Playtones(ring)
exten => did,n,Wait(10)
exten => did,n,StopPlaytones()
exten => did,n,BackGround(sound file)

did = the DID number as presented and note the '1' before Answer.

This works for me.

exten => 820055,1,Answer()
exten => 820055,n,PlayTones(ring)
exten => 820055,n,Wait(5)
exten => 820055,n,StopPlayTones()
exten => 820055,n,[do something interesting from now on]

That's my DID (820055) being answered first and then waiting for 5
seconds.  I use it for fax detect this way.


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bob
Smither
Sent: 18 December 2009 23:11
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Ringing for incoming call

Dear All,

I am using Asterisk 1.4 on CentOS 5.  I have an incoming DID provided by
Vitelity.  When the number is called it goes to my Asterisk box.  The
protocol is SIP.  This all works just fine if I answer the call and
begin a playback.

I want to let the number ring for a few seconds before it is answered,
and would like the caller to hear it ringing.  I have tried:

...
exten => s,n,Answer
exten => s,n,Playtones(ring)
exten => s,n,Wait(10)
exten => s,n,StopPlaytones()
exten => s,n,BackGround(sound file)
...

also

...
exten => s,n,Answer
exten => s,n,Ringing()
exten => s,n,Wait(10)
exten => s,n,BackGround(sound file)
...

I have also tried moving the Answer app to right before the BackGround
app.

In all cases when I call the number I never hear it ringing.  After the
10 second delay, the BackGround app does run.  Connecting to the CLI
does not give me any useful information - for example the Ringing app is
shown to run, but the caller does not hear it.

Any suggestions?

Many thanks!

-- 
Bob Smither <Smither at C-C-I.com>


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list