summaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-06-11 21:14:04 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-06-11 21:14:04 +0200
commitac510eac6d39c7d3244d6c8b08bc5fb22a147b6b (patch)
treef105ac8ae8c50d81d4f660b401b43c891ce84b6d /src/audio.c
parentb7c97a98c5285eba0c0ab0f99b0aecfdf24068b0 (diff)
core: dont open RTP ports when receiving OPTIONS
- also added struct stream_param which contains common parameters for the media stream, passed down from call.c to stream.c ref #265
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index 1d42065..116ffaa 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -746,7 +746,8 @@ static int add_telev_codec(struct audio *a)
}
-int audio_alloc(struct audio **ap, const struct config *cfg,
+int audio_alloc(struct audio **ap, const struct stream_param *stream_prm,
+ const struct config *cfg,
struct call *call, struct sdp_session *sdp_sess, int label,
const struct mnat *mnat, struct mnat_sess *mnat_sess,
const struct menc *menc, struct menc_sess *menc_sess,
@@ -773,7 +774,7 @@ int audio_alloc(struct audio **ap, const struct config *cfg,
tx = &a->tx;
rx = &a->rx;
- err = stream_alloc(&a->strm, &cfg->avt, call, sdp_sess,
+ err = stream_alloc(&a->strm, stream_prm, &cfg->avt, call, sdp_sess,
"audio", label,
mnat, mnat_sess, menc, menc_sess,
call_localuri(call),