[asterisk-bugs] [JIRA] Created: (ASTERISK-20331) asterisk should not reinvite on 2 channels with incompatible codecs

Frederic Van Espen (JIRA) noreply at issues.asterisk.org
Wed Aug 29 03:47:07 CDT 2012


asterisk should not reinvite on 2 channels with incompatible codecs
-------------------------------------------------------------------

                 Key: ASTERISK-20331
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20331
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/CodecHandling
    Affects Versions: 1.8.15.0, 1.8.14.1, 1.8.14.0, 1.8.13.1
         Environment: Ubuntu 10.04 LTS
            Reporter: Frederic Van Espen
            Severity: Minor


I have 2 SIP peers set up in this way
[peer1]
type=friend
username=peer1
secret=xxx
dtmfmode=rfc2833
restrictid=no
host=dynamic
mailbox=7725
pickupgroup=1
callgroup=1
context=NoRestrict
callerid=Jan <7725>
directmedia=yes
qualify=yes
disallow=all
allow=ulaw

[peer2]
type=friend
username=peer2
secret=xxx
dtmfmode=rfc2833
restrictid=no
host=dynamic
mailbox=7724
pickupgroup=1
callgroup=1
context=NoRestrict
callerid=Joris <7724>
directmedia=yes
qualify=yes
disallow=all
allow=alaw

during call setup asterisk tries ReINVITE to both peers, but fails because of the incompatible codecs (ulaw <> alaw). Afterwards, asterisk sends BYE to both peers and hangs up the channels.

I can reproduce this on asterisk 1.8.13.0 and upwards. I have not tried lower versions but I suspect they are affected too.

I would expect one of 2 things:
   - Asterisk does not try reinvite at all (it knows that the codecs are incompatible)
   - Asterisk tries reinvite, but keeps the channels up when it fails.

--
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