mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
Asterisk:
#72 - Should eliminate probs on VMWI #41 - Dynamic add survives reload #73 - Make festival honor its arguments #93 - Make events on FXO interfaces more logical #26 - Prefer "bindaddr" to logical address for registrations ??? - Record crashes AGI git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2833,6 +2833,9 @@ static int transmit_register(struct sip_registry *r, char *cmd, char *auth)
|
||||
strncpy(p->peername, r->username, sizeof(p->peername)-1);
|
||||
strncpy(p->username, r->username, sizeof(p->username)-1);
|
||||
strncpy(p->exten, r->contact, sizeof(p->exten) - 1);
|
||||
/* Always bind to our IP if specified */
|
||||
if (bindaddr.sin_addr.s_addr)
|
||||
memcpy(&p->ourip, &bindaddr.sin_addr, sizeof(p->ourip));
|
||||
build_contact(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user