aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-09-27 16:19:40 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2018-09-27 16:23:06 +0200
commitf77f193e7719d6a1914095a955f834c66b5d3131 (patch)
tree82f928305cf97ab5a58f41e9d334f242ccfe40fc
parent8a695c42a8472e6c636976c0d451524efef24d3b (diff)
sdp: Fix IP address as it already comes in network byte orderdaniel/wip
-rw-r--r--src/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdp.c b/src/sdp.c
index 17eb577..2824378 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -165,7 +165,7 @@ bool sdp_extract_sdp(struct sip_call_leg *leg, const sip_t *sip, bool any_codec)
char *sdp_create_file(struct sip_call_leg *leg, struct call_leg *other)
{
- struct in_addr net = { .s_addr = htonl(other->ip) };
+ struct in_addr net = { .s_addr = other->ip };
char *fmtp_str = NULL, *sdp;
leg->wanted_codec = app_media_name(other->payload_msg_type);