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
..
2012-07-31 20:21:43 +00:00
2014-01-14 23:26:40 +00:00
2013-12-20 19:52:43 +00:00
2014-01-16 20:05:31 +00:00
2013-08-02 15:01:37 +00:00
2013-12-14 17:15:54 +00:00
2013-10-02 17:11:42 +00:00
2014-01-14 23:26:40 +00:00
2013-08-30 13:17:12 +00:00
2012-06-25 15:55:25 +00:00
2011-07-14 20:28:54 +00:00
2013-12-18 20:25:39 +00:00
2013-11-27 15:36:16 +00:00
2013-11-27 15:36:16 +00:00
2013-12-17 23:17:32 +00:00
2013-12-20 22:02:11 +00:00
2013-11-27 15:36:16 +00:00
2013-11-27 15:36:16 +00:00
2013-11-07 21:09:18 +00:00
2014-01-14 23:26:40 +00:00
2013-10-04 15:54:57 +00:00
2013-07-27 23:11:02 +00:00
2013-11-27 15:36:16 +00:00
2013-11-27 15:36:16 +00:00
2013-11-27 15:36:16 +00:00
2014-01-12 22:23:12 +00:00
2013-07-27 23:11:02 +00:00
2012-05-18 14:43:44 +00:00
2012-10-31 14:58:44 +00:00
2013-03-28 23:59:20 +00:00
2013-01-30 14:19:29 +00:00
2013-12-18 19:20:02 +00:00
2013-09-30 18:48:57 +00:00
2012-12-13 15:37:45 +00:00
2013-10-02 22:34:05 +00:00
2013-04-27 12:01:29 +00:00
2013-04-27 12:01:29 +00:00
2013-05-10 20:28:18 +00:00
2013-05-07 18:30:55 +00:00
2013-04-27 12:01:29 +00:00
2013-12-08 05:54:53 +00:00
2011-07-14 20:28:54 +00:00
2013-08-18 02:55:54 +00:00
2012-09-21 17:14:59 +00:00
2010-07-21 19:11:32 +00:00
2012-10-14 21:44:27 +00:00
2013-12-09 03:19:39 +00:00
2014-01-16 19:06:57 +00:00
2012-07-13 16:49:40 +00:00
2012-07-13 18:41:07 +00:00
2013-03-27 14:28:36 +00:00
2013-08-23 15:42:27 +00:00
2012-07-13 16:49:40 +00:00
2012-04-17 18:57:40 +00:00
2013-09-13 14:18:36 +00:00
2013-07-03 16:32:00 +00:00
2013-12-19 16:37:56 +00:00
2011-12-05 14:47:11 +00:00
2012-10-14 21:44:27 +00:00
2013-06-17 03:00:38 +00:00
2013-09-10 18:03:45 +00:00
2013-07-18 16:03:12 +00:00
2014-01-06 17:48:14 +00:00
2014-01-06 17:43:32 +00:00
2014-01-06 17:43:32 +00:00
2012-10-14 21:44:27 +00:00
2013-10-22 16:26:20 +00:00
2012-10-14 21:44:27 +00:00
2014-01-07 19:55:05 +00:00
2014-01-03 21:09:59 +00:00
2014-01-15 13:14:06 +00:00
2014-01-15 13:14:06 +00:00
2013-09-03 18:08:20 +00:00
2013-07-30 18:14:50 +00:00
2013-12-31 22:19:03 +00:00
2013-10-25 17:34:30 +00:00
2013-11-23 17:14:22 +00:00
2013-07-30 18:14:50 +00:00
2014-01-15 13:14:06 +00:00
2013-09-13 14:21:23 +00:00
2014-01-03 21:45:08 +00:00
2014-01-15 13:14:06 +00:00
2014-01-15 13:14:06 +00:00
2014-01-15 13:14:06 +00:00
2014-01-15 13:14:06 +00:00
2013-07-30 18:14:50 +00:00
2013-10-12 16:49:00 +00:00
2014-01-15 13:14:06 +00:00
2014-01-15 13:14:06 +00:00
2013-08-30 00:10:49 +00:00
2013-12-24 02:19:20 +00:00
2013-07-30 18:14:50 +00:00
2014-01-15 13:14:06 +00:00
2013-12-03 17:23:50 +00:00
2014-01-15 13:14:06 +00:00
2013-07-30 18:14:50 +00:00
2014-01-17 21:32:18 +00:00
2014-01-15 13:14:06 +00:00
2013-07-30 18:14:50 +00:00
2014-01-15 13:14:06 +00:00
2013-12-01 19:56:38 +00:00
2014-01-17 18:54:32 +00:00
2013-11-23 17:14:22 +00:00
2013-07-30 13:46:16 +00:00
2011-11-01 19:53:26 +00:00
2014-01-09 16:51:19 +00:00
2013-10-03 18:28:57 +00:00
2013-09-30 18:48:57 +00:00
2012-10-14 21:44:27 +00:00
2012-10-14 21:44:27 +00:00
2013-12-09 19:23:49 +00:00
2013-12-17 18:34:16 +00:00
2013-03-20 14:52:23 +00:00
2013-04-27 12:01:29 +00:00
2012-10-01 12:29:04 +00:00
2013-09-16 17:53:47 +00:00
2013-05-15 12:42:04 +00:00
2013-12-13 16:32:53 +00:00
2013-05-20 14:21:39 +00:00
2013-12-20 20:04:41 +00:00
2013-11-23 17:38:29 +00:00
2014-01-14 23:26:40 +00:00
2014-01-14 23:26:40 +00:00
2013-12-13 16:32:53 +00:00
2013-05-23 20:11:35 +00:00
2013-12-13 16:32:53 +00:00
2013-07-03 17:58:45 +00:00
2013-12-18 19:20:02 +00:00
2013-11-23 12:38:04 +00:00
2013-09-30 18:48:57 +00:00
2013-05-08 13:39:08 +00:00
2013-12-18 20:25:39 +00:00
2013-04-15 16:43:47 +00:00
2013-07-27 23:11:02 +00:00
2013-04-26 20:05:15 +00:00
2013-07-08 14:42:57 +00:00
2012-11-05 23:10:14 +00:00
2012-11-05 23:10:14 +00:00
2013-04-19 22:27:08 +00:00
2012-11-05 23:10:14 +00:00
2013-12-19 16:37:56 +00:00
2012-07-07 17:06:51 +00:00