summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-03-25 19:58:06 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-03-25 19:58:06 +0100
commit3db75e6e2656270a487b5a0841f0ee784e4e50bb (patch)
treed27fcc5d25c6e78b098eaf927559fcc6ac73f631
parentfd71413b656818f210c7ae62835015f0bc40d4ee (diff)
call: print warning if sdp_decode fails
-rw-r--r--src/call.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/call.c b/src/call.c
index 704f04a..6a0f6fe 100644
--- a/src/call.c
+++ b/src/call.c
@@ -1071,8 +1071,11 @@ static int sipsess_offer_handler(struct mbuf **descp,
/* Decode SDP Offer */
err = sdp_decode(call->sdp, msg->mb, true);
- if (err)
+ if (err) {
+ warning("call: reinvite: could not decode SDP offer:"
+ " %m\n", err);
return err;
+ }
err = update_media(call);
if (err)