[Home]

Summary:ASTERISK-01400: Ringing doesn't work with the 'r' option in app_dial
Reporter:connor (connor)Labels:
Date Opened:2004-04-12 22:05:54Date Closed:2011-06-07 14:05:30
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ring.diff.txt
Description:I upgraded to CVS-04/12/04-10:36:43 and the 'r' option no longer makes the system "ring" when it calls out.
Comments:By: Brian West (bkw918) 2004-04-13 01:06:58

Stable or cvs-head?

By: connor (connor) 2004-04-13 01:13:06

cvs-head

By: darkthorn (darkthorn) 2004-04-13 13:40:58

Just to clarify, your going from Zaptel/Called to Zaptel/Answered, and never hitting the 'ringing' state, correct? Also, what is the exact configuration that your having this problem in?

By: connor (connor) 2004-04-13 13:45:05

No Zaptel at all..  This is SIP.  Going from a Cisco ATA to a Cisco 26xx gateway.. the 'r' option worked with a older version of stable, but, now, doesn't work with the latest cvs-head OR cvs-stable!  I don't think it's a problem in app_dial.c because I copied the one from the working copy into the newer versions and bug was still present.

By: Brian West (bkw918) 2004-04-13 15:36:17

does this cisco have analog VIC's or does it have a PRI.  My SIP (7960) to my cisco2610 with both head and stable work... even gsmfr codec from my 2610 to asterisk works... we are running c2600-ik9o3s3-mz.123-5b

I suspect your cisco gateway is to blame check the IOS you are running... because I don't see this problem.  I don't get ringback without the r on mine because this is an analog interface. If I add the r I get ringback till the VIC is done dialing the line then I get handed a connect.

bkw

By: Mark Spencer (markster) 2004-04-13 15:39:43

I guess someone just needs to login and look at it.  We're not seeing this problem, so presumably there is something special about your setup that is excercising it.

By: connor (connor) 2004-04-13 15:42:52

Cisco has a PRI.  But once again I will state, this was working before I upgraded to later versions of Asterisk.  In addition, as stated, I'm using reinvites... and yes, the 'r' did work..  This is the CVS info from the working copy..

Asterisk CVS-02/25/04-14:35:41  

I belive that was from stable.  Please note, this is calling INTO the Cisco ATA from the cisco gateway from a analog line OR another ATA.. in either case, I don't get the ringback.  I *DO* get ringbacks when I call out, at lease, as I recall...  but, I noticed the problem when someone was dialing INTO me.

By: Brian West (bkw918) 2004-04-13 16:18:31

PSTN => CISCO => ASTERISK => ATA you don't get ringback? right?

The otherway you do?

By: darkthorn (darkthorn) 2004-04-13 16:42:50

Out of curiousity, in dial, can you try the 'R' option, as well as the 'g' option, to see if you get the same effect?

By: connor (connor) 2004-04-13 17:01:09

bkw: Correct.

PSTN => CISCO => ASTERISK => ATA, no ringback
ATA => ASTERISK => CISCO => PSTN, Get ringback

Darkthorn: to my knowledge, and show application dial, there is no 'R' and why would 'g' make and difference?

By: darkthorn (darkthorn) 2004-04-13 17:14:08

Connor: Ignore that. I just had confused myself. I started thinking it was when you were doing something that shouldn't have affected the ringing at all.

By: Brian West (bkw918) 2004-04-14 12:15:16

the reverse path asterisk is going to provide ringback the cisco would wouldn't it?

Just asking.

By: connor (connor) 2004-04-14 12:54:31

Posted a complete DIFF between the version of asterisk which works correctly, and a current stable cvs version that doesn't.  Please note that I have some extra stuff patched into my version for chan_h323, and voicemail, but those shouldn't even affect this issue.

By: Mark Spencer (markster) 2004-04-14 14:51:19

Again, please just find me on IRC so i can login and take a look.

By: Brian West (bkw918) 2004-04-14 22:40:01

I think we have this narroed down to the cisco.  Its appears to be at fault.  Connor said if he answers the line before dialing the ATA it provids ringback.  The cisco isn't providing ringback when handed a 180 from asterisk.. it just gives deadair.

CISCO => ANSWER => DIAL => ATA gets ringback

CISCO => DIAL => ATA no ringback.

thats what we have found so far.  I am leaning on an IOS bug.

By: Mark Spencer (markster) 2004-04-15 15:23:39

The cisco is not generating ringback in-band when we send 180 ringing, so it's clearly a Cisco bug.

By: connor (connor) 2004-04-16 18:28:27

Addition info on bug.

The version of asterisk I was using would "answer" the channel.. when combined with the 'r' option, it could then send a ringback.  the newer cvs's do not "answer" the channel before dialing out.. thus, the 'r' option is useless.  

As for 180's not working with the Cisco IOS.  It's not a bug.. Just needed to toggle a option in my voip dial peers. (This tells the gateway to send ringback on a ISDN/PRI trunk)

progress_ind setup enable 1

Putting this in my voip dialpeers fixed my bug.

By: Brian West (bkw918) 2004-04-16 18:41:06

w00t