Skip to content

Commit

Permalink
Merge pull request #814 from sippy/master_rtpp_ip6_fix
Browse files Browse the repository at this point in the history
Fix an issue with IPv6 in the rtpproxy module
(cherry picked from commit f906d93)
  • Loading branch information
bogdan-iancu committed Mar 7, 2016
1 parent 57085a3 commit 7f3cd63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/rtpproxy/rtpproxy.c
Expand Up @@ -3887,7 +3887,11 @@ force_rtp_proxy_body(struct sip_msg* msg, struct force_rtpp_args *args, pv_spec_
* 3) no ip in rtpproxy response (started using unix socket and no -l param)
* must revert to default of proxy ip
*/
newip.s = args->arg2 ? args->arg2 : argv[1] ? argv[1] : ip_addr2a(&msg->rcv.dst_ip);
newip.s = args->arg2 ? args->arg2 : argv[1];
if (newip.s == NULL) {
newip.s = ip_addr2a(&msg->rcv.dst_ip);
pf1 = msg->rcv.dst_ip.af;
}
newip.len = strlen(newip.s);
}
/* marker to double check : newport goes: str -> int -> str ?!?! */
Expand Down

0 comments on commit 7f3cd63

Please sign in to comment.