|
|
@ -3681,6 +3681,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req
|
|
|
|
p->expire = -1;
|
|
|
|
p->expire = -1;
|
|
|
|
ast_db_del("SIP/Registry", p->name);
|
|
|
|
ast_db_del("SIP/Registry", p->name);
|
|
|
|
strcpy(p->useragent, "");
|
|
|
|
strcpy(p->useragent, "");
|
|
|
|
|
|
|
|
p->lastms = 0;
|
|
|
|
if (option_verbose > 2)
|
|
|
|
if (option_verbose > 2)
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Unregistered SIP '%s'\n", p->name);
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Unregistered SIP '%s'\n", p->name);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
@ -4927,7 +4928,7 @@ static int __sip_show_channels(int fd, int argc, char *argv[], int subscriptions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#define FORMAT3 "%-15.15s %-10.10s %-21.21s %-15.15s\n"
|
|
|
|
#define FORMAT3 "%-15.15s %-10.10s %-21.21s %-15.15s\n"
|
|
|
|
#define FORMAT2 "%-15.15s %-10.10s %-11.11s %-11.11s %s\n"
|
|
|
|
#define FORMAT2 "%-15.15s %-10.10s %-11.11s %-11.11s %s\n"
|
|
|
|
#define FORMAT "%-15.15s %-10.10s %-11.11s %5.5d/%5.5d %-6.6s%s\n"
|
|
|
|
#define FORMAT "%-15.15s %-10.10s %-11.11s %5.5d/%5.5d %-6.6s%s\n"
|
|
|
|
struct sip_pvt *cur;
|
|
|
|
struct sip_pvt *cur;
|
|
|
|
int numchans = 0;
|
|
|
|
int numchans = 0;
|
|
|
|
if (argc != 3)
|
|
|
|
if (argc != 3)
|
|
|
|