[asterisk-users] Ringback issue

D'Arcy J.M. Cain darcy at Vex.Net
Mon Aug 24 22:48:50 CDT 2015


My last problem was nicely solved through this mailing list so
hopefully this new problem will have the same happy outcome.

My situation is that I have many extensions.  Here is a sample:

[client-phone](!)
type=friend
host=dynamic
secret=XXXXXXXXXX
dtmfmode=auto
disallow=all
allow=ulaw
allow=gsm
allow=g723
allow=ilbc
subscribemwi=no
 
[4165555555](client-phone)
secret=xxxxxxxxxxxxxxxxxxxxxxxxxx
callerid=D'Arcy <4165555555>                
mailbox=4165555555 at VoiceMail
context=LocalSets

I can send calls to this extension with this:

exten => 1,Verbose(0,${CALLERID(all)} Calling ${EXTEN})
  same => n,Dial(SIP/4165555555,30)
  same => n,VoiceMail(4165555555 at VoiceMail,u)
  same => n,Hangup()

Up to this point everything works as expected.  I call in and I hear a
ringback until the extension is picked up.

Now I add a virtual PBX to the mix.

[pbx-17842]
  exten => s,1,Verbose(0,${CALLERID(all)} Calling PBX 17842)
    same => n,Answer 
    same => n,Wait(2)
    same => n(announce),Background($SOUNDS/pbx-17842/announce)
    same => n,WaitExten()
    same => n,DigitTimeout,5
    same => n,ResponseTimeout,10
    same => n,Goto(s,announce)

  exten => i,1,Verbose(0,${CALLERID(all)} dialed invalid extension
  ${EXTEN}) same => n,Playback(invalid)
    same => n,Goto(s,announce)

  exten => 200,1,Verbose(0,${CALLERID(all)} Calling PBX darcy)
    same => n,GoTo(LocalSets,4165555555,1)

Finally I add an extension to go to that context:

exten => 4165556666,1,GoTo(pbx-17842,s,1)

When I dial 4165556666 I get no ringback which I can sort of live with
since it gets answered pretty quickly but then when I dial "200" it
transfers me correctly to the 4165555555 extension but there is no
ringback there either and that is a problem because caller think that
the phone has gone dead.

So, when I call 4165555555 it works fine but if I call it through the
virtual PBX it fails.  I tried various combinations of "Ringing" and
'r' options and "prematuremedia=no" and "progressinband=yes" but
nothing seems to help.  Can someone suggest a line of enquiry?

Cheers.

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy at Vex.Net
VoIP: sip:darcy at Vex.Net



More information about the asterisk-users mailing list