Files
asterisk/include/asterisk
Scott Griepentrog 2b14601bdc pjsip: fix support for allow=all
This change adds improvements to support for allow=all in
pjsip.conf so that it functions as intended.  Previously,
the allow/disallow socery configuration would set & clear
codecs from the media.codecs and media.prefs list, but if
all was specified the prefs list was not updated.  Then a
call would fail when create_outgoing_sdp_stream() created
an SDP with no audio codecs.

A new function ast_codec_pref_append_all() is provided to
add all codecs to the prefs list - only those not already
on the list.  This enables the configuration to specify a
codec preference, but still add all codecs, and even then
remove some codecs, as shown in this example:

allow = ulaw, alaw, all, !g729, !g723

Also, the display order of allow in cli output is updated
to match the configuration by using prefs instead of caps
when generating a human readable string.

Finally, a change to create_outgoing_sdp_stream() skips a
codec when it does not have a payload code instead of the
call failing.

(closes issue ASTERISK-23018)
Reported by: xrobau
Review: https://reviewboard.asterisk.org/r/3131/
........

Merged revisions 405875 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@405876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-01-17 21:33:26 +00:00
..
2013-10-04 16:01:48 +00:00
2013-11-23 17:26:57 +00:00
2012-06-25 15:55:25 +00:00
2014-01-12 22:24:27 +00:00
2013-11-27 17:32:29 +00:00
2013-07-19 23:30:10 +00:00
2013-07-25 04:06:32 +00:00
2013-08-22 18:52:41 +00:00
2013-09-27 14:08:23 +00:00
2013-08-25 18:00:46 +00:00
2013-12-20 21:32:13 +00:00
2013-08-22 18:52:41 +00:00
2012-08-30 14:23:28 +00:00
2012-08-30 14:23:28 +00:00
2013-11-23 17:48:28 +00:00
2013-10-04 16:01:48 +00:00
2013-07-03 17:58:45 +00:00
2014-01-17 21:33:26 +00:00
2012-08-30 14:23:28 +00:00
2012-09-21 17:14:59 +00:00
2013-08-02 14:27:35 +00:00
2013-11-02 04:12:36 +00:00
2013-12-20 19:25:20 +00:00
2012-08-30 14:23:28 +00:00
2013-05-14 21:45:08 +00:00
2013-08-30 20:58:59 +00:00
2013-08-05 14:35:00 +00:00
2013-08-17 15:01:54 +00:00
2013-07-03 17:58:45 +00:00
2014-01-06 17:45:25 +00:00
2012-09-21 17:14:59 +00:00
2014-01-15 13:16:10 +00:00
2012-02-24 15:10:35 +00:00
2011-10-11 19:06:29 +00:00
2012-10-18 14:17:40 +00:00
2013-12-20 21:32:13 +00:00
2013-04-22 16:22:00 +00:00
2013-05-08 13:39:08 +00:00
2013-11-23 17:26:57 +00:00
2013-02-14 18:47:56 +00:00
2012-08-30 14:23:28 +00:00
2013-11-23 17:26:57 +00:00
2013-02-15 13:38:12 +00:00
2013-02-15 13:38:12 +00:00