fix registration bug when doing authed calls

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5604 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-08-16 17:19:27 +00:00
parent a5b6f48128
commit 68f58ae927
1 changed files with 4 additions and 0 deletions

View File

@ -435,6 +435,10 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
}
reg:
if (regtype != REG_REGISTER) {
return 0;
}
if (exptime) {
if (!sofia_reg_find_reg_url(profile, to_user, to_host, buf, sizeof(buf))) {
sql = switch_mprintf("insert into sip_registrations values ('%q','%q','%q','%q', '%q', %ld)",