[Home]

Summary:ASTERISK-18583: 'r' option to Dial() not working as documented
Reporter:Kris Shaw (shawkris)Labels:
Date Opened:2011-09-20 05:44:57Date Closed:2011-09-21 09:33:55
Priority:MinorRegression?Yes
Status:Closed/CompleteComponents:Applications/app_dial
Versions:1.8.6.0 Frequency of
Occurrence
Constant
Related
Issues:
duplicatesASTERISK-18083 "r" dial params stop give ringback if M macro used
Environment:Asterisk 1.8.6, DAHDI 2.5.0.1, LibPRI 1.4.12Attachments:( 0) inbandissue.txt
Description:We have two sites each with traditional PBXs connected to Asterisk via PRIs. An IAX trunk between the two Asterisk servers carries calls between the two sites. The PBX at site B does not generate in-band ringing so at site A we use the 'r' option in Dial() to emulate this for users on PBX A. With Asterisk 1.4 this gave users at site A in-band ringing until the call was answered. With Asterisk 1.8 we get a single ring at site A, then silence.

   -- Executing [s-IAX2@macro-dial-voip-trunk:2] Dial("DAHDI/i2/558xxx-350", "IAX2/ohtrunk/1227,,r") in new stack

I have tried adding Ringing() to the dialplan but this did not make a difference.
Comments:By: Kris Shaw (shawkris) 2011-09-20 05:46:02.977-0500

PRI trace of call from site A to PBX B, taken from Asterisk at site B

By: Kris Shaw (shawkris) 2011-09-20 06:00:29.225-0500

Asterisk console at site A, dialing a user at site B

   -- Executing [01xxxxx1260@in-from-siemens:1] Macro("DAHDI/i2/xxx237-359", "dial-voip-trunk,01xxxxx1260,IAX2,ohtrunk,TRUNK,4,01xxx,r") in new stack
   -- Executing [s@macro-dial-voip-trunk:1] Set("DAHDI/i2/xxx237-359", "CALLERID(num)=xxx237") in new stack
   -- Executing [s@macro-dial-voip-trunk:2] GotoIf("DAHDI/i2/xxx237-359", "0?3:4") in new stack
   -- Goto (macro-dial-voip-trunk,s,4)
   -- Executing [s@macro-dial-voip-trunk:4] Set("DAHDI/i2/xxx237-359", "CALLERID(all)=<01xxxxx8237>") in new stack
   -- Executing [s@macro-dial-voip-trunk:5] NoOp("DAHDI/i2/xxx237-359", "--- Starting dial-voip-trunk from 01xxxxx8237 to 01xxxxx1260 via IAX2/ohtrunk ---") in new stack
   -- Executing [s@macro-dial-voip-trunk:6] Goto("DAHDI/i2/xxx237-359", "s-IAX2,1") in new stack
   -- Goto (macro-dial-voip-trunk,s-IAX2,1)
   -- Executing [s-IAX2@macro-dial-voip-trunk:1] Ringing("DAHDI/i2/xxx237-359", "") in new stack
   -- Accepting call from 'xxx237' to '01xxxxx1260' on channel 0/12, span 2
   -- Executing [s-IAX2@macro-dial-voip-trunk:2] Dial("DAHDI/i2/xxx237-359", "IAX2/ohtrunk/1260,,r") in new stack
   -- Called IAX2/ohtrunk/1260
   -- Call accepted by 10.111.x.x (format alaw)
   -- Format for call is alaw
   -- IAX2/ohtrunk-16786 is ringing
   -- IAX2/ohtrunk-16786 is ringing

(I hear a single ring then silence)
(I then hungup at this point)

   -- Span 2: Channel 0/12 got hangup request, cause 16
[Sep 20 11:48:02] WARNING[28010]: app_dial.c:1354 wait_for_answer: Unable to write frametype: 2
   -- Hungup 'IAX2/ohtrunk-16786'
 == Spawn extension (macro-dial-voip-trunk, s-IAX2, 2) exited non-zero on 'DAHDI/i2/xxx237-359' in macro 'dial-voip-trunk'
 == Spawn extension (in-from-siemens, 01xxxxx1260, 1) exited non-zero on 'DAHDI/i2/xxx237-359'
   -- Hungup 'DAHDI/i2/xxx237-359'


By: Kris Shaw (shawkris) 2011-09-20 07:00:30.518-0500

This could be related to ASTERISK-18083

By: Kris Shaw (shawkris) 2011-09-20 12:00:37.512-0500

Patch for ASTERISK-18083 appears to work OK for this situation

By: Leif Madsen (lmadsen) 2011-09-21 09:33:55.070-0500

Closing as already fixed and committed.