[Asterisk-Users] Playtones not passing sound to incoming SIP
connection
Mat Stace
mps at colewood.net
Wed Jul 27 08:34:36 MST 2005
Hi everyone,
I'm in the very early stages of rolling out an asterisk box at work, and one
of the things I'm setting up is a trap for telemarketers >;)
What I want to do is have a sipgate number in the UK here which rings for 10
seconds without calling a hard or softphone, then goes to a voicemailbox.
The problem I'm having is that Playtones doesn't seem to be sending any
sound to the incoming SIP connection. I have added the following to my
[incoming_sipgate] context (which has two other sipgate numbers in there
which both work for incoming and outgoing calls), and on the console I can
see all the lines being executed.
exten => SIPGATEID,1,Wait,1
exten => SIPGATEID,2,NoOp(--- ${CALLERID} calling on Telemarket Divert
Sipgate (${EXTEN}) ---)
exten => SIPGATEID,3,Answer
exten => SIPGATEID,4,Playtones,ring
exten => SIPGATEID,5,Wait,10
exten => SIPGATEID,6,StopPlaytones
exten => SIPGATEID,7,Voicemail(666)
exten => SIPGATEID,8,Hangup
When dialing in via the PSTN number, or from a remote SIP softphone however,
the ten seconds which whould be the Playtones is silence. When the voicemail
kicks in, I can hear the announcements, and leave a message, so I don't
think it's a ports problem. For the playtones line, I have also tried "exten
=> SIPGATEID,5,Playtones(ring)" but doesn't seem to make any difference.
Internally, I set up an extension (in my [default] context - I should have
an [internal] one, I know, ;-P ) with the same commands:
exten => 6613,1,Wait,1
exten => 6613,3,Answer
exten => 6613,4,Playtones,ring
exten => 6613,5,Wait,10
exten => 6613,6,StopPlaytones
exten => 6613,7,Voicemail(666)
exten => 6613,8,Hangup
And when dialing 6613, I get ten seconds of ringtone, then to the
answerphone as expected. There is a difference in the two, in that the
sipgate one has the NoOp line in, but I initially tried the 6613 extension
with that line in (I removed it for ease of differentiation in the console).
Anyone got any ideas on this one? The fact that I can hear the voicemail
announement and leave a message has really thrown me. Maybe I'll just have
to create a .gsm recording of the ringer and use a Playback instead.
Cheers in advance,
Mat
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005
More information about the asterisk-users
mailing list