Module: sems Branch: rco/dnscache Commit: 9eecb79ab3c7691f70f6279f68c3c0dc23bc6d4f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=9eecb79ab3c7691f70f6279f68c3c0dc23bc6d4f
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Thu Sep 2 23:25:50 2010 +0200 fixes port number for A record lookups --- core/sip/trans_layer.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp index aedb4ef..5086b8d 100644 --- a/core/sip/trans_layer.cpp +++ b/core/sip/trans_layer.cpp @@ -715,6 +715,8 @@ int _trans_layer::set_destination_ip(sip_msg* msg, cstring* next_hop, unsigned s } if(!((sockaddr_in*)&(msg->remote_ip))->sin_port) { + if(!next_port) + next_port = 5060; ((sockaddr_in*)&(msg->remote_ip))->sin_port = htons(next_port); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
