static void dlg_on_destroy( void *arg )
{
    pjsip_dialog *dlg = (pjsip_dialog *)arg;

    PJ_LOG(5,(dlg->obj_name, "Dialog destroyed!"));

    pjsip_endpt_release_pool(dlg->endpt, dlg->pool);
}
static void dlg_on_destroy( void *arg )
{
    pjsip_dialog *dlg = (pjsip_dialog *)arg;

    PJ_LOG(5,(dlg->obj_name, "Dialog destroyed!"));

    pjsip_endpt_release_pool(dlg->endpt, dlg->pool);
}