diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-21 15:51:24 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-21 15:51:24 +0000 |
commit | aab8f2d6b659c81747dc7f4b69ac58a3d705e829 (patch) | |
tree | 661f0cedefc4c32120671b39a2960800f9cd0068 /channels | |
parent | 583973b4335cf945a5996de8590dbe145c3f4e10 (diff) |
Properly set the port number for UDPTL media sessions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@278461 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f5e6a7544..6a624f374 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8266,8 +8266,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action /* Setup image address and port */ if (p->udptl) { if (udptlportno > 0) { - isin.sin_family = AF_INET; - isin.sin_port = htons(udptlportno); + ast_sockaddr_set_port(isa, udptlportno); if (ast_test_flag(&p->flags[1], SIP_PAGE2_SYMMETRICRTP) && ast_test_flag(&p->flags[1], SIP_PAGE2_UDPTL_DESTINATION)) { struct sockaddr_in remote_address = { 0, }; struct ast_sockaddr remote_address_tmp; |