mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
Fix nat registration (bug #2315)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4339,7 +4339,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req
|
|||||||
} else
|
} else
|
||||||
port = DEFAULT_SIP_PORT;
|
port = DEFAULT_SIP_PORT;
|
||||||
memcpy(&oldsin, &p->addr, sizeof(oldsin));
|
memcpy(&oldsin, &p->addr, sizeof(oldsin));
|
||||||
if (p->nat & SIP_NAT_RFC3581) {
|
if (!(p->nat & SIP_NAT_ROUTE)) {
|
||||||
/* XXX This could block for a long time XXX */
|
/* XXX This could block for a long time XXX */
|
||||||
hp = ast_gethostbyname(n, &ahp);
|
hp = ast_gethostbyname(n, &ahp);
|
||||||
if (!hp) {
|
if (!hp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user