sdp: Fix IP address as it already comes in network byte order

Change-Id: I182d15c4b1c08f220c5fef7cfaaf1f8cdb40335b
This commit is contained in:
Daniel Willmann 2018-09-27 16:19:40 +02:00
parent 8a695c42a8
commit f77f193e77
1 changed files with 1 additions and 1 deletions

View File

@ -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) 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; char *fmtp_str = NULL, *sdp;
leg->wanted_codec = app_media_name(other->payload_msg_type); leg->wanted_codec = app_media_name(other->payload_msg_type);