code analysis and error checking.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7568 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-02-09 05:16:58 +00:00
parent 8368c5ed18
commit 18a0b7a42a
7 changed files with 25 additions and 21 deletions
+5 -1
View File
@@ -364,10 +364,14 @@ void event_handler(switch_event_t *event)
char *rpid = switch_event_get_header(event, "orig-rpid");
char *call_id = switch_event_get_header(event, "orig-call-id");
char *user_agent = switch_event_get_header(event, "user-agent");
long expires = (long) switch_timestamp(NULL) + atol(exp_str);
long expires = (long) switch_timestamp(NULL);
char *profile_name = switch_event_get_header(event, "orig-profile-name");
sofia_profile_t *profile = NULL;
if (exp_str) {
expires += atol(exp_str);
}
if (!rpid) {
rpid = "unknown";
}