[Home]

Summary:ASTERISK-13771: Codec negotiation issue when codecs not defined in [general] section of sip.conf
Reporter:Paul Belanger (pabelanger)Labels:
Date Opened:2009-03-18 10:29:33Date Closed:2011-06-07 14:07:56
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:http://bugs.digium.com/view.php?id=14511

I was going to post a reply to the thread, but can't seem to figure
out how to re-open it once it has been closed.

Either way, I think there maybe a problem related to the codecs issue
that was reported in the issue.

If I see the following:

sip.conf
---
[general]
disallow=all

[authentication]

[hound]
host=hound
type=peer
transport=tcp,udp
promiscredir=yes
qualify=yes
allow=ulaw
---

We get the follow errors "sip_call: No audio format found to offer"

However if we modify sip.conf to the following:
[general]
disallow=all
allow=ulaw

[authentication]

[hound]
host=hound
type=peer
transport=tcp,udp
promiscredir=yes
qualify=yes
---

The error goes away.

The one thing I did notice when we seen the error was the following in the logs.

---
[Mar 12 12:26:51] DEBUG[19467] chan_sip.c: *** Our native formats are 0x4 (ulaw)
[Mar 12 12:26:51] DEBUG[19467] chan_sip.c: *** Joint capabilities are 0x4 (ulaw)
[Mar 12 12:26:51] DEBUG[19467] chan_sip.c: *** Our capabilities are
0x0 (nothing)
[Mar 12 12:26:51] DEBUG[19467] frame.c: Could not find preferred codec
- Going for the best codec
[Mar 12 12:26:51] DEBUG[19467] chan_sip.c: *** AST_CODEC_CHOOSE
formats are 0x4 (ulaw)
[Mar 12 12:26:51] DEBUG[19467] chan_sip.c: *** Our preferred formats
from the incoming channel are 0x4 (ulaw)
[Mar 12 12:26:51] DEBUG[19467] chan_sip.c: This channel will not be
able to handle video.
---

Here is the working version

---
[Mar 12 12:30:05] DEBUG[6314] chan_sip.c: *** Our native formats are 0x4 (ulaw)
[Mar 12 12:30:05] DEBUG[6314] chan_sip.c: *** Joint capabilities are 0x4 (ulaw)
[Mar 12 12:30:05] DEBUG[6314] chan_sip.c: *** Our capabilities are 0x4 (ulaw)
[Mar 12 12:30:05] DEBUG[6314] chan_sip.c: *** AST_CODEC_CHOOSE formats
are 0x4 (ulaw)
---


Comments:By: Joshua C. Colp (jcolp) 2009-03-30 16:06:14

Can you please upload a *complete* console output? The only way I can reproduce this is if I dial something that does indeed not have any codecs allowed. A sip show peer on the peer you are dialing using would also be helpful.

By: Joshua C. Colp (jcolp) 2009-04-27 10:24:13

I haven't yet seen the information uploaded. Can you please do so?

By: Leif Madsen (lmadsen) 2009-05-22 11:20:25

Closed due to lack of response. If you can provide the requested information, please reopen this issue.