automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@15937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge script
2006-03-29 01:06:53 +00:00
parent b4589618c4
commit f86140a213
2 changed files with 3 additions and 2 deletions

View File

@@ -5462,7 +5462,7 @@ static int transmit_register(struct sip_registry *r, int sipmethod, char *auth,
if (r->portno)
p->sa.sin_port = htons(r->portno);
else /* Set registry port to the port set from the peer definition/srv or default */
r->portno = p->sa.sin_port;
r->portno = ntohs(p->sa.sin_port);
ast_set_flag(p, SIP_OUTGOING); /* Registration is outgoing call */
r->call=p; /* Save pointer to SIP packet */
p->registry=ASTOBJ_REF(r); /* Add pointer to registry in packet */