sql=switch_mprintf("update sip_registrations set expires = %ld where sip_user='%q' and sip_host='%q' and contact='%q'",(long)switch_epoch_time_now(NULL)+(long)exptime+60,to_user,reg_host,contact_str);
sql=switch_mprintf("update sip_registrations set expires = %ld where sip_user='%q' and sip_host='%q' and contact='%q'",(long)switch_epoch_time_now(NULL)+(long)exptime+60,to_user,reg_host,contact_str);