[Home]

Summary:ASTERISK-15460: [patch] Dial option 'L' does not work correctly when a local channel is involved
Reporter:Mark Murawski (kobaz)Labels:
Date Opened:2010-01-18 13:32:09.000-0600Date Closed:2010-03-11 09:32:48.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_local
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) localchannel.tex
( 1) localchannel.txt
Description:If you spawn a local channel, and then dial a sip/iax/etc device, L does nothing at all.

context foo {
 2 => {
   Dial(SIP/201,,L(60000:45000:15000));
 }
}

context services {
 1 => {
   Dial(Local/2@foo);
 }
}

User dials 1@services


 == Spawn extension (services, 1, 1) exited non-zero on 'IAX2/branch-2941'
   -- Hungup 'IAX2/branch-2941'
   -- Accepting AUTHENTICATED call from 192.168.15.1:
      > requested format = ulaw,
      > requested prefs = (ulaw|alaw|gsm|g726|ilbc),
      > actual format = ulaw,
      > host prefs = (ulaw|alaw|gsm|g726|ilbc),
      > priority = mine
   -- Executing [1@services:1] Dial("IAX2/branch-607", "Local/2@foo") in new stack
   -- Called 2@foo
new stack
   -- Executing [2@foo:1] Dial("Local/2@foo-9c9a;2", "SIP/201,,L(60000:45000:15000)") in new stack
   -- Limit Data for this call:
      > timelimit      = 60000
      > play_warning   = 45000
      > play_to_caller = yes
      > play_to_callee = no
      > warning_freq   = 15000
      > start_sound    =
      > warning_sound  = timeleft
      > end_sound      =
 == Using SIP RTP CoS mark 5
   -- Called 201
   -- SIP/201-00000003 is ringing
   -- Local/2@foo-9c9a;1 is ringing
   -- SIP/201-00000003 answered Local/2@foo-9c9a;2
   -- Local/2@foo-9c9a;1 answered IAX2/branch-607
 == Spawn extension (foo, 2, 4) exited non-zero on 'Local/2@foo-9c9a;2'

demo1*CLI>

After 2 minutes the call is still not hung up, and no warning sounds have been played


As opposed to the following... which does work
-----


   -- Accepting AUTHENTICATED call from 192.168.15.1:
      > requested format = ulaw,
      > requested prefs = (ulaw|alaw|gsm|g726|ilbc),
      > actual format = ulaw,
      > host prefs = (ulaw|alaw|gsm|g726|ilbc),
      > priority = mine
   -- Executing [261@trunkhandler_from-branch:1] Dial("IAX2/branch-430", "SIP/201,,L(60000:45000:15000)") in new stack
   -- Limit Data for this call:
      > timelimit      = 60000
      > play_warning   = 45000
      > play_to_caller = yes
      > play_to_callee = no
      > warning_freq   = 15000
      > start_sound    =
      > warning_sound  = timeleft
      > end_sound      =
 == Using SIP RTP CoS mark 5
   -- Called 201
   -- SIP/201-00000005 is ringing
   -- SIP/201-00000005 answered IAX2/branch-430
   -- <IAX2/branch-430> Playing 'vm-youhave.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'digits/40.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'digits/5.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'queue-seconds.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'vm-youhave.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'digits/30.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'queue-seconds.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'vm-youhave.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'digits/15.ulaw' (language 'en')
   -- <IAX2/branch-430> Playing 'queue-seconds.ulaw' (language 'en')
 == Spawn extension (trunkhandler_from-branch, 261, 1) exited non-zero on 'IAX2/branch-430'
   -- Hungup 'IAX2/branch-430'


As a workaround, if you do Dial(Local/2@foo/n), the L option will work...but then this makes for other problems because now the local channels are not merged into the device channels and GROUP()'s will behave differently.
Comments:By: Leif Madsen (lmadsen) 2010-03-02 12:06:21.000-0600

Added link to reviewboard (https://reviewboard.asterisk.org/r/534/) in the description. This issue is the basis for the creation of a new Local channel document. It will be a replacement/update of the existing localchannels.[txt|tex] documentation.

By: Leif Madsen (lmadsen) 2010-03-02 12:06:36.000-0600

Marking this as Ready for Review.

By: Digium Subversion (svnbot) 2010-03-03 15:22:56.000-0600

Repository: asterisk
Revision: 250609

U   trunk/doc/tex/localchannel.tex

------------------------------------------------------------------------
r250609 | lmadsen | 2010-03-03 15:22:56 -0600 (Wed, 03 Mar 2010) | 11 lines

Update existing Local channel documentation.

A complete re-write of the Local channel documentation has been performed, with
the existing information from localchannel.txt and localchannel.tex merged in.

(closes issue ASTERISK-15460)
Reported by: kobaz
Patches:
     localchannel.tex uploaded by lmadsen (license 10)
     localchannel.txt uploaded by lmadsen (license 10)
Tested by: lmadsen, jsmith, mmichelson
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=250609

By: Digium Subversion (svnbot) 2010-03-03 15:24:21.000-0600

Repository: asterisk
Revision: 250610

_U  branches/1.6.2/
U   branches/1.6.2/doc/tex/localchannel.tex

------------------------------------------------------------------------
r250610 | lmadsen | 2010-03-03 15:24:20 -0600 (Wed, 03 Mar 2010) | 19 lines

Merged revisions 250609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r250609 | lmadsen | 2010-03-03 16:22:55 -0500 (Wed, 03 Mar 2010) | 11 lines
 
 Update existing Local channel documentation.
 
 A complete re-write of the Local channel documentation has been performed, with
 the existing information from localchannel.txt and localchannel.tex merged in.
 
 (closes issue ASTERISK-15460)
 Reported by: kobaz
 Patches:
       localchannel.tex uploaded by lmadsen (license 10)
       localchannel.txt uploaded by lmadsen (license 10)
 Tested by: lmadsen, jsmith, mmichelson
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=250610

By: Digium Subversion (svnbot) 2010-03-03 15:25:10.000-0600

Repository: asterisk
Revision: 250611

_U  branches/1.6.1/
U   branches/1.6.1/doc/tex/localchannel.tex

------------------------------------------------------------------------
r250611 | lmadsen | 2010-03-03 15:25:09 -0600 (Wed, 03 Mar 2010) | 19 lines

Merged revisions 250609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r250609 | lmadsen | 2010-03-03 16:22:55 -0500 (Wed, 03 Mar 2010) | 11 lines
 
 Update existing Local channel documentation.
 
 A complete re-write of the Local channel documentation has been performed, with
 the existing information from localchannel.txt and localchannel.tex merged in.
 
 (closes issue ASTERISK-15460)
 Reported by: kobaz
 Patches:
       localchannel.tex uploaded by lmadsen (license 10)
       localchannel.txt uploaded by lmadsen (license 10)
 Tested by: lmadsen, jsmith, mmichelson
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=250611

By: Digium Subversion (svnbot) 2010-03-03 15:27:02.000-0600

Repository: asterisk
Revision: 250612

U   branches/1.6.0/doc/tex/localchannel.tex

------------------------------------------------------------------------
r250612 | lmadsen | 2010-03-03 15:27:02 -0600 (Wed, 03 Mar 2010) | 19 lines

Merged revisions 250609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r250609 | lmadsen | 2010-03-03 16:22:55 -0500 (Wed, 03 Mar 2010) | 11 lines
 
 Update existing Local channel documentation.
 
 A complete re-write of the Local channel documentation has been performed, with
 the existing information from localchannel.txt and localchannel.tex merged in.
 
 (closes issue ASTERISK-15460)
 Reported by: kobaz
 Patches:
       localchannel.tex uploaded by lmadsen (license 10)
       localchannel.txt uploaded by lmadsen (license 10)
 Tested by: lmadsen, jsmith, mmichelson
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=250612

By: Digium Subversion (svnbot) 2010-03-03 15:28:03.000-0600

Repository: asterisk
Revision: 250613

U   branches/1.4/doc/localchannel.txt

------------------------------------------------------------------------
r250613 | lmadsen | 2010-03-03 15:28:03 -0600 (Wed, 03 Mar 2010) | 11 lines

Update existing Local channel documentation.

A complete re-write of the Local channel documentation has been performed, with
the existing information from localchannel.txt and localchannel.tex merged in.

(issue ASTERISK-15460)
Reported by: kobaz
Patches:
     localchannel.tex uploaded by lmadsen (license 10)
     localchannel.txt uploaded by lmadsen (license 10)
Tested by: lmadsen, jsmith, mmichelson
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=250613

By: Digium Subversion (svnbot) 2010-03-03 15:28:32.000-0600

Repository: asterisk
Revision: 250614

_U  trunk/

------------------------------------------------------------------------
r250614 | lmadsen | 2010-03-03 15:28:31 -0600 (Wed, 03 Mar 2010) | 19 lines

Recorded merge of revisions 250613 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r250613 | lmadsen | 2010-03-03 16:28:02 -0500 (Wed, 03 Mar 2010) | 11 lines
 
 Update existing Local channel documentation.
 
 A complete re-write of the Local channel documentation has been performed, with
 the existing information from localchannel.txt and localchannel.tex merged in.
 
 (issue ASTERISK-15460)
 Reported by: kobaz
 Patches:
       localchannel.tex uploaded by lmadsen (license 10)
       localchannel.txt uploaded by lmadsen (license 10)
 Tested by: lmadsen, jsmith, mmichelson
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=250614