[asterisk-users] Ringing sound doesn't work

Simon Perreault simon.perreault at viagenie.ca
Wed Aug 29 08:03:53 CDT 2007


Hi,

I have these extensions:

exten => 101,1,Dial(SIP/101,15)
exten => 102,1,Dial(SIP/102,15)
exten => 0,1,Dial(SIP/101&SIP/102,15,r)

They work fine and I get the ringing sound if I dial them directly. However, I 
also have this extension:

exten => s,1,Answer()
exten => s,2,Background(viagenie)
exten => s,3,WaitExten()

The ringing sound doesn't work for any extension if I use this one. I just get 
silence until someone answers. How come?

I use Asterisk 1.4.10. I have attached my extensions.conf file to this email.

Thanks,
Simon
-------------- next part --------------
[globals]
SIPTRUNK=4185555555
IAXTRUNK=5145555555

[default]
exten => s,1,Answer()
exten => s,2,Background(viagenie)
exten => s,3,WaitExten()

exten => i,1,Background(invalid)
exten => i,n,Goto(s,1)

exten => t,1,Background(please-try-again)
exten => t,n,Goto(s,1)

[phones]
exten => 101,1,Dial(SIP/101,15)
exten => 101,n,Goto(201,1)

; Simon
exten => 102,1,Dial(SIP/102,15)
exten => 102,n,Voicemail(102)

exten => 201,n,Dial(SIP/4185555555@${SIPTRUNK},15)
exten => 201,n,Voicemail(101)

[ivr]
exten => 0,1,Dial(SIP/101&SIP/102,15,r)
exten => 0,n,Goto(201,1)

exten => 8,1,Directory(default)
exten => #,1,Directory(default)
exten => 500,1,VoiceMailMain()

[voip_incoming]
exten => ${SIPTRUNK},1,Goto(s,1)

[voip_outgoing]
exten => _NXXXXXX,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _NXXXXXX,2,Dial(SIP/418${EXTEN}@${SIPTRUNK})

exten => _NXXNXXXXXX,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _NXXNXXXXXX,2,Dial(SIP/${EXTEN}@${SIPTRUNK})

exten => _1NXXNXXXXXX,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _1NXXNXXXXXX,2,Dial(SIP/${EXTEN:1}@${SIPTRUNK})

exten => _9NXXXXXX,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _9NXXXXXX,2,Dial(SIP/418${EXTEN:1}@${SIPTRUNK})

exten => _9NXXNXXXXXX,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _9NXXNXXXXXX,2,Dial(SIP/${EXTEN:1}@${SIPTRUNK})

exten => _91NXXNXXXXXX,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _91NXXNXXXXXX,2,Dial(SIP/${EXTEN:2}@${SIPTRUNK})

exten => _9.,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => _9.,2,Dial(SIP/${EXTEN:1}@${SIPTRUNK})

exten => N11,1,Set(CALLERID(all)="Viagenie (418-555-5555)")
exten => N11,2,Dial(SIP/${EXTEN}@${SIPTRUNK})

[external]
include => default
include => phones
include => ivr
include => voip_incoming

[internal]
include => external
include => voip_outgoing
exten => 10,1,Goto(s,1)


More information about the asterisk-users mailing list