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

Jaco Kroon (JIRA) noreply at issues.asterisk.org
Fri Sep 21 19:06:27 CDT 2012


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

Jaco Kroon edited comment on ASTERISK-20461 at 9/21/12 7:04 PM:
----------------------------------------------------------------

CLI output from a relatively simple example.

I suspect the issue stem from the fact that normally a Local/ channel will derivc it's format from the channel creating it (parent channel?), which will then just end up doing a simple pass-through.

However, since app_originate originates the channel using SLINEAR format, this prevents to the end-points from negotating the format to use properly and ends up forcing translation via slin, even when the two formats on either side of the Local channel are the same.

In my opinion the Local channel should adopt whatever format gets set up for leg1 of the Local channel in this case, and not SLINEAR.

If someone can push me in a direction I'll be happy to try and cook a patch, however, I have no idea where to start with this.

      was (Author: jkroon):
    CLI output from a relatively simple example.

I suspect the issue stem from the fact that normally a Local/ channel will derivc it's format from the channel creating it (parent channel?), which will then just end up doing a simple pass-through.

However, since app_originate originates the channel using SLINEAR format, this prevents to the end-points from negotating the format to use properly and ends up forcing translation via slin, even when the two formats on either side of the Local channel.

In my opinion the Local channel should adopt whatever format gets set up for leg1 of the Local channel in this case, and not SLINEAR.

If someone can push me in a direction I'll be happy to try and cook a patch, however, I have no idea where to start with this.
  
> channel originate Local/foo * forces translation via slin
> ---------------------------------------------------------
>
>                 Key: ASTERISK-20461
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20461
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_originate, Channels/chan_local
>    Affects Versions: 1.8.12.2, 1.8.15.1
>            Reporter: Jaco Kroon
>         Attachments: 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list