[asterisk-bugs] [JIRA] (ASTERISK-20461) channel originate Local/foo * forces translation via slin

Jaco Kroon (JIRA) noreply at issues.asterisk.org
Tue Oct 23 05:15:18 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=198849#comment-198849 ] 

Jaco Kroon commented on ASTERISK-20461:
---------------------------------------

Also, regarding the "both sides have answered", surely this statement isn't quite accurate.

At the time when ;1 gets bridged ;2 isn't even in the dialplan yet (at least, not in my scenario).  In my scenario when ;1 is in dialplan we really don't care about the codec, but once ;1 gets answered we should probably switch to it's codec directly.  Ie, probably discard the existing transcoding chain (if there are no listeners - eg Monitor()) and attach the IO for the bridged channel of ;1 directly to ;2?

Not sure if my explanation makes sense but I sincerely hope it does.

Is there any scenarios that I'm missing here?  The only other case I can currently think of is Dial(Local/number at context), in which case the same strategy will probably hold too, since ;2 enters into the dialplan directly, there is no reason why we can't use the IO channels for whatever ;1 is connected to on ;2 ??

I really am a little stumped as to the best way to deal with this from a code perspective.
                
> channel originate Local/foo * forces translation via slin
> ---------------------------------------------------------
>
>                 Key: ASTERISK-20461
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20461
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Applications/app_originate, Channels/chan_local
>    Affects Versions: 1.8.12.2, 1.8.15.1
>            Reporter: Jaco Kroon
>         Attachments: asterisk-chan_local_g729.patch, asterisk-originate-with-g729.patch, trace.txt
>
>
> The simplest example of this is with a SIP and an IAX2 endpoint available, eg SIP/102 and IAX2/upstream, both configured with disallow=all; allow=g729 with codecs from digium loaded.
> cli> originate Local/102 at aanswer Dial IAX2/upstream/number
> once connected a g729 show licenses will show that two encoders and two decoders are in use.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list