Commit 6bafeca0 authored by Pekka Pessi's avatar Pekka Pessi

Fixed NUA_500_ERROR usage.

darcs-hash:20050913083353-65a35-65067c71ee567b3596b644596997642eb5b62161.gz
parent 2360bc02
......@@ -170,6 +170,9 @@ static char const nua_allow_str[] =
"INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, INFO, "
"MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE";
/** Default internal error */
char const nua_500_error[] = "Internal NUA Error";
/* ----------------------------------------------------------------------
* Initialization & deinitialization
*/
......@@ -3478,7 +3481,7 @@ ua_invite2(nua_t *nua, nua_handle_t *nh, nua_event_t e, int restarted,
char const *what;
du = dialog_usage_add(nh, nh->nh_ds, nua_session_usage, NULL);
what = (char const *)NUA_500_ERROR; /* Internal error */
what = nua_500_error; /* Internal error */
msg = du ? crequest_message(nua, nh, cr, restarted,
SIP_METHOD_INVITE,
......
......@@ -522,7 +522,9 @@ struct nua_handle_s
(nh)->nh_phrase, \
SIPTAG_WARNING_STR(nh->nh_warning)
#define NUA_500_ERROR 500, "Internal NUA Error"
extern char const nua_500_error[];
#define NUA_500_ERROR 500, nua_500_error
#define SET_STATUS(_status, _phrase) status = _status, phrase = _phrase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment