|
|
@ -40,6 +40,7 @@
|
|
|
|
#include <sys/signal.h>
|
|
|
|
#include <sys/signal.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <strings.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <netdb.h>
|
|
|
@ -5294,7 +5295,7 @@ static int try_transfer(struct chan_iax2_pvt *pvt, struct iax_ies *ies)
|
|
|
|
|
|
|
|
|
|
|
|
memset(&ied, 0, sizeof(ied));
|
|
|
|
memset(&ied, 0, sizeof(ied));
|
|
|
|
if (ies->apparent_addr)
|
|
|
|
if (ies->apparent_addr)
|
|
|
|
memcpy(&new, ies->apparent_addr, sizeof(new));
|
|
|
|
bcopy(ies->apparent_addr, &new, sizeof(new));
|
|
|
|
if (ies->callno)
|
|
|
|
if (ies->callno)
|
|
|
|
newcall = ies->callno;
|
|
|
|
newcall = ies->callno;
|
|
|
|
if (!newcall || !new.sin_addr.s_addr || !new.sin_port) {
|
|
|
|
if (!newcall || !new.sin_addr.s_addr || !new.sin_port) {
|
|
|
@ -5445,7 +5446,7 @@ static int iax2_ack_registry(struct iax_ies *ies, struct sockaddr_in *sin, int c
|
|
|
|
|
|
|
|
|
|
|
|
memset(&us, 0, sizeof(us));
|
|
|
|
memset(&us, 0, sizeof(us));
|
|
|
|
if (ies->apparent_addr)
|
|
|
|
if (ies->apparent_addr)
|
|
|
|
memcpy(&us, ies->apparent_addr, sizeof(us));
|
|
|
|
bcopy(ies->apparent_addr, &us, sizeof(us));
|
|
|
|
if (ies->username)
|
|
|
|
if (ies->username)
|
|
|
|
ast_copy_string(peer, ies->username, sizeof(peer));
|
|
|
|
ast_copy_string(peer, ies->username, sizeof(peer));
|
|
|
|
if (ies->refresh)
|
|
|
|
if (ies->refresh)
|
|
|
|