- CALLIDHOST_SIZE to 128: support longer hostnames

This commit is contained in:
Thomas Ries 2006-01-31 18:38:20 +00:00
parent 70c90f0292
commit 07a314e7a5
4 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,6 @@
0.5.12
======
31-Jan-2006: - CALLIDHOST_SIZE to 128: support longer hostnames
1-Jan-2006: - short-dial: use "302 Moved" to point to target
28-Dec-2005: - Call logging: display FROM & TO for calls.
26-Dec-2005: - Added a short-dial feature ("pi_shortdial_*" config options)

View File

@ -49,7 +49,7 @@ dnl Release Version
dnl
SPD_MAJOR_VERSION=0
SPD_MINOR_VERSION=5
SPD_MICRO_VERSION=11
SPD_MICRO_VERSION=12
SPD_VERSION=$SPD_MAJOR_VERSION.$SPD_MINOR_VERSION.$SPD_MICRO_VERSION

View File

@ -21,7 +21,7 @@
/* $Id$ */
#define CALLIDNUM_SIZE 256
#define CALLIDHOST_SIZE 32
#define CALLIDHOST_SIZE 128
#define CLIENT_ID_SIZE 128
typedef struct {
int rtp_rx_sock; /* rx socket (0 -> free slot)*/

View File

@ -420,21 +420,21 @@ int rtp_relay_start_fwd (osip_call_id_t *callid, char *client_id,
* the constants CALLIDNUM_SIZE and/or CALLIDHOST_SIZE.
*/
if (callid->number && strlen(callid->number) > CALLIDNUM_SIZE) {
ERROR("rtp_relay_start_fwd: received callid number "
ERROR("rtp_relay_start_fwd: received callid number [%s] "
"has too many characters (%i, max=%i)",
strlen(callid->number),CALLIDNUM_SIZE);
callid->number, strlen(callid->number),CALLIDNUM_SIZE);
return STS_FAILURE;
}
if (callid->host && strlen(callid->host) > CALLIDHOST_SIZE) {
ERROR("rtp_relay_start_fwd: received callid host "
ERROR("rtp_relay_start_fwd: received callid host [%s] "
"has too many characters (%i, max=%i)",
strlen(callid->host),CALLIDHOST_SIZE);
callid->host, strlen(callid->host),CALLIDHOST_SIZE);
return STS_FAILURE;
}
if (client_id && strlen(client_id) > CLIENT_ID_SIZE) {
ERROR("rtp_relay_start_fwd: client ID has too many characters "
ERROR("rtp_relay_start_fwd: client ID [%s] has too many characters "
"(%i, max=%i) (maybe you need to increase CLIENT_ID_SIZE",
strlen(client_id),CLIENT_ID_SIZE);
client_id, strlen(client_id),CLIENT_ID_SIZE);
return STS_FAILURE;
}