Lines Matching refs:new_dlg
1582 _sip_dialog_t *new_dlg;
1584 new_dlg = calloc(1, sizeof (_sip_dialog_t));
1585 if (new_dlg == NULL)
1588 new_dlg->sip_dlg_req_uri.sip_str_ptr =
1590 if (new_dlg->sip_dlg_req_uri.sip_str_ptr == NULL) {
1591 free(new_dlg);
1594 (void) strncpy(new_dlg->sip_dlg_req_uri.sip_str_ptr,
1597 new_dlg->sip_dlg_req_uri.sip_str_ptr[
1599 new_dlg->sip_dlg_req_uri.sip_str_len =
1608 new_dlg->sip_dlg_rset.sip_str_ptr =
1610 if (new_dlg->sip_dlg_rset.sip_str_ptr == NULL) {
1611 if (new_dlg->sip_dlg_req_uri.sip_str_ptr != NULL)
1612 free(new_dlg->sip_dlg_req_uri.sip_str_ptr);
1613 free(new_dlg);
1616 (void) strncpy(new_dlg->sip_dlg_rset.sip_str_ptr,
1619 new_dlg->sip_dlg_rset.sip_str_ptr[
1621 new_dlg->sip_dlg_rset.sip_str_len =
1624 new_dlg->sip_dlg_route_set =
1626 if (new_dlg->sip_dlg_route_set == NULL) {
1627 free(new_dlg->sip_dlg_rset.sip_str_ptr);
1628 if (new_dlg->sip_dlg_req_uri.sip_str_ptr != NULL)
1629 free(new_dlg->sip_dlg_req_uri.sip_str_ptr);
1630 free(new_dlg);
1634 if ((new_dlg->sip_dlg_local_uri_tag =
1636 (new_dlg->sip_dlg_remote_target =
1638 (new_dlg->sip_dlg_local_contact =
1640 (new_dlg->sip_dlg_call_id =
1642 sip_release_dialog_res(new_dlg);
1646 new_dlg->sip_dlg_event = sip_dup_header(dialog->sip_dlg_event);
1647 if (new_dlg->sip_dlg_event == NULL) {
1648 sip_release_dialog_res(new_dlg);
1652 new_dlg->sip_dlg_local_cseq = dialog->sip_dlg_local_cseq;
1653 new_dlg->sip_dlg_type = dialog->sip_dlg_type;
1654 new_dlg->sip_dlg_on_fork = B_FALSE;
1655 (void) pthread_mutex_init(&new_dlg->sip_dlg_mutex, NULL);
1657 return (new_dlg);
1756 _sip_dialog_t *new_dlg;
1759 new_dlg = sip_copy_partial_dialog(_dialog);
1760 if (new_dlg == NULL) {
1775 _dialog = new_dlg;