mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1270 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d49eea0a72
commit
ced844afdb
@ -323,14 +323,13 @@ static switch_status exosip_on_init(switch_core_session *session)
|
|||||||
static const switch_codec_implementation *imp;
|
static const switch_codec_implementation *imp;
|
||||||
for (i = 0; i < num_codecs; i++) {
|
for (i = 0; i < num_codecs; i++) {
|
||||||
int x = 0;
|
int x = 0;
|
||||||
uint32_t sps;
|
|
||||||
|
|
||||||
snprintf(tmp, sizeof(tmp), "%u", codecs[i]->ianacode);
|
snprintf(tmp, sizeof(tmp), "%u", codecs[i]->ianacode);
|
||||||
sdp_message_m_payload_add(tech_pvt->local_sdp, 0, osip_strdup(tmp));
|
sdp_message_m_payload_add(tech_pvt->local_sdp, 0, osip_strdup(tmp));
|
||||||
imp = codecs[i]->implementations;
|
imp = codecs[i]->implementations;
|
||||||
sps = imp->samples_per_second;
|
|
||||||
|
|
||||||
while(NULL != imp) {
|
while(NULL != imp) {
|
||||||
|
uint32_t sps = imp->samples_per_second;
|
||||||
/* Add to SDP config */
|
/* Add to SDP config */
|
||||||
sdp_add_codec(tech_pvt->sdp_config, codecs[i]->codec_type, codecs[i]->ianacode, codecs[i]->iananame, sps, x++);
|
sdp_add_codec(tech_pvt->sdp_config, codecs[i]->codec_type, codecs[i]->ianacode, codecs[i]->iananame, sps, x++);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user