Lines Matching defs:dialog
260 sip_sendmsg(sip_conn_object_t obj, sip_msg_t sip_msg, sip_dialog_t dialog,
304 * If the appln wants us to create the dialog, create a partial
305 * dialog at this stage, when we get the response, we will
309 if (sip_msg_info->is_request && dialog == NULL) {
310 dialog = (sip_dialog_t)sip_seed_dialog(obj, sip_msg,
312 } else if (dialog != NULL && (!sip_msg_info->is_request ||
314 (void) sip_update_dialog(dialog, _sip_msg);
315 } else if (dialog != NULL) {
318 * track the SIP message sent within a dialog.
320 (void) pthread_mutex_lock(&dialog->sip_dlg_mutex);
321 dialog->sip_dlg_msgcnt++;
322 sip_add_log(&dialog->sip_dlg_log[dialog->sip_dlg_state],
323 (sip_msg_t)sip_msg, dialog->sip_dlg_msgcnt,
325 (void) pthread_mutex_unlock(&dialog->sip_dlg_mutex);
329 (void) sip_dialog_add_new_contact(dialog,
423 sip_dialog_t dialog = NULL;
523 dialog = sip_dialog_find(sip_msg);
524 if (dialog == NULL) {
530 dialog = (sip_dialog_t)sip_seed_dialog(
535 } else if (sip_incomplete_dialog(dialog)) {
538 dialog = sip_update_dialog(dialog, sip_msg);
540 } else if (sip_dialog_process(sip_msg, &dialog) != 0) {
541 if (dialog != NULL)
542 sip_release_dialog(dialog);
563 sip_ulp_recv(conn_object, (sip_msg_t)sip_msg, dialog);
565 if (dialog != NULL && !dialog_created)
566 sip_release_dialog(dialog);