|
|
|
@ -118,16 +118,15 @@ static void *contact_alloc(const char *name)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ast_string_field_init(contact, 256)) {
|
|
|
|
|
if (ast_string_field_init(contact, 256)
|
|
|
|
|
|| ast_string_field_init_extended(contact, endpoint_name)
|
|
|
|
|
|| ast_string_field_init_extended(contact, reg_server)
|
|
|
|
|
|| ast_string_field_init_extended(contact, via_addr)
|
|
|
|
|
|| ast_string_field_init_extended(contact, call_id)) {
|
|
|
|
|
ao2_cleanup(contact);
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ast_string_field_init_extended(contact, endpoint_name);
|
|
|
|
|
ast_string_field_init_extended(contact, reg_server);
|
|
|
|
|
ast_string_field_init_extended(contact, via_addr);
|
|
|
|
|
ast_string_field_init_extended(contact, call_id);
|
|
|
|
|
|
|
|
|
|
/* Dynamic contacts are delimited with ";@" and static ones with "@@" */
|
|
|
|
|
if ((aor_separator = strstr(id, ";@")) || (aor_separator = strstr(id, "@@"))) {
|
|
|
|
|
*aor_separator = '\0';
|
|
|
|
|