Scott Griepentrog
8ce01b96f4
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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@405875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-01-17 21:32:18 +00:00
..
2013-10-23 20:02:21 +00:00
2013-08-28 23:14:57 +00:00
2013-09-18 19:59:24 +00:00
2013-11-23 17:14:22 +00:00
2012-06-26 13:23:12 +00:00
2012-06-15 16:20:16 +00:00
2013-08-01 17:07:52 +00:00
2013-12-19 16:37:56 +00:00
2012-07-11 17:16:50 +00:00
2012-04-17 18:57:40 +00:00
2012-07-11 17:16:50 +00:00
2012-03-24 02:42:42 +00:00
2012-09-21 17:14:59 +00:00
2014-01-14 18:03:06 +00:00
2013-08-22 08:26:55 +00:00
2013-08-20 15:36:10 +00:00
2013-09-09 23:23:02 +00:00
2014-01-09 20:25:24 +00:00
2013-11-23 12:38:04 +00:00
2012-06-15 16:20:16 +00:00
2013-08-09 20:29:09 +00:00
2013-08-23 18:07:40 +00:00
2013-07-25 04:06:32 +00:00
2013-12-17 23:17:32 +00:00
2013-12-18 20:25:39 +00:00
2013-08-05 16:59:13 +00:00
2013-12-18 20:25:39 +00:00
2013-12-03 17:23:50 +00:00
2012-09-25 19:29:14 +00:00
2013-10-02 22:34:05 +00:00
2014-01-12 21:58:32 +00:00
2013-12-18 20:25:39 +00:00
2013-10-03 21:40:20 +00:00
2013-12-30 23:21:56 +00:00
2012-06-15 16:20:16 +00:00
2014-01-14 18:03:06 +00:00
2013-09-20 22:41:25 +00:00
2013-12-20 21:23:24 +00:00
2013-12-18 20:25:39 +00:00
2013-12-18 19:20:02 +00:00
2013-07-04 13:06:15 +00:00
2012-03-22 19:51:16 +00:00
2013-10-24 16:58:30 +00:00
2013-06-29 00:18:57 +00:00
2013-12-19 16:31:57 +00:00
2013-11-23 17:38:29 +00:00
2013-12-18 20:25:39 +00:00
2013-07-14 02:05:04 +00:00
2013-05-24 20:44:07 +00:00
2012-10-18 14:17:40 +00:00
2012-03-22 19:51:16 +00:00
2013-12-18 20:25:39 +00:00
2013-05-24 20:44:07 +00:00
2013-09-10 18:03:45 +00:00
2013-10-01 16:34:51 +00:00
2014-01-17 17:14:16 +00:00
2013-10-02 22:34:05 +00:00
2012-06-15 16:20:16 +00:00
2012-03-22 19:51:16 +00:00
2013-10-02 22:34:05 +00:00
2014-01-17 21:32:18 +00:00
2013-08-23 15:42:27 +00:00
2014-01-17 21:32:18 +00:00
2013-12-17 18:25:26 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-08-16 16:26:11 +00:00
2013-09-10 18:03:45 +00:00
2014-01-17 20:49:57 +00:00
2012-12-11 22:25:21 +00:00
2013-09-10 18:03:45 +00:00
2012-06-15 16:20:16 +00:00
2013-10-24 19:41:49 +00:00
2013-11-22 20:01:26 +00:00
2012-09-14 19:53:43 +00:00
2013-10-31 16:04:59 +00:00
2013-09-09 20:12:46 +00:00
2014-01-14 18:03:06 +00:00
2013-08-23 21:49:47 +00:00
2013-12-17 23:17:32 +00:00
2013-09-30 18:48:57 +00:00
2013-09-30 18:48:57 +00:00
2013-09-30 18:48:57 +00:00
2013-09-30 18:39:34 +00:00
2014-01-16 19:52:57 +00:00
2012-04-28 01:33:49 +00:00
2013-12-03 16:37:26 +00:00
2013-12-18 19:20:02 +00:00
2013-07-29 17:51:25 +00:00
2013-08-30 19:20:47 +00:00
2013-10-04 21:40:33 +00:00
2013-10-04 21:40:33 +00:00
2013-09-19 23:16:31 +00:00
2013-09-06 19:20:06 +00:00
2014-01-14 18:03:06 +00:00
2013-12-18 20:25:39 +00:00
2012-06-15 16:20:16 +00:00
2013-08-17 14:39:27 +00:00
2012-06-15 16:20:16 +00:00
2013-12-17 23:36:56 +00:00
2013-12-20 21:16:47 +00:00
2012-06-15 16:20:16 +00:00
2013-06-22 14:03:22 +00:00
2013-11-08 19:28:11 +00:00
2013-09-30 18:26:27 +00:00
2012-09-21 17:14:59 +00:00
2012-10-11 15:49:02 +00:00
2013-05-28 17:47:29 +00:00
2014-01-17 21:32:18 +00:00
2013-12-20 19:06:12 +00:00
2013-05-08 20:25:28 +00:00
2013-12-18 20:25:39 +00:00
2013-09-30 18:39:34 +00:00
2013-10-02 17:11:42 +00:00
2013-12-18 20:25:39 +00:00
2013-11-22 20:01:26 +00:00
2014-01-12 21:55:11 +00:00
2013-11-22 20:01:26 +00:00
2013-07-19 18:00:35 +00:00
2014-01-12 21:55:11 +00:00
2013-01-19 20:54:07 +00:00
2014-01-14 21:44:10 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2013-10-25 23:52:13 +00:00
2013-12-16 18:31:27 +00:00
2012-09-21 17:14:59 +00:00
2013-02-14 18:47:56 +00:00
2013-12-13 20:06:53 +00:00
2013-06-20 16:29:35 +00:00
2013-08-20 15:36:10 +00:00
2012-12-11 22:25:21 +00:00
2013-11-22 17:11:46 +00:00
2013-12-19 17:03:55 +00:00
2012-06-15 16:20:16 +00:00
2013-11-23 17:14:22 +00:00
2013-04-26 20:32:11 +00:00
2013-10-03 17:57:49 +00:00
2013-12-11 13:05:12 +00:00