Lines Matching refs:new_sess
138 sdp_free_session(new_sess); \
148 sdp_free_session(new_sess); \
159 sdp_free_session(new_sess); \
171 sdp_free_session(new_sess); \
826 sdp_session_t *new_sess;
843 new_sess = calloc(1, sizeof (sdp_session_t));
844 if (new_sess == NULL)
846 new_sess->sdp_session_version = session->sdp_session_version;
847 new_sess->s_version = session->s_version;
849 if (origin != NULL && (sdp_add_origin(new_sess, origin->o_username,
854 if (session->s_name != NULL && sdp_add_name(new_sess, session->
858 if (session->s_info != NULL && sdp_add_information(&new_sess->
862 if (session->s_uri != NULL && sdp_add_uri(new_sess, session->
868 if (sdp_add_email(new_sess, (char *)list->value) != 0)
874 if (sdp_add_phone(new_sess, (char *)list->value) != 0)
879 SDP_ADD_CONNECTION(new_sess->s_conn, conn);
881 SDP_ADD_BANDWIDTH(new_sess->s_bw, bw);
884 if (sdp_add_time(new_sess, time->t_start, time->t_stop,
906 if (sdp_add_zone(new_sess, zone->z_time, zone->z_offset) != 0)
910 SDP_ADD_KEY(new_sess->s_key, session->s_key);
912 SDP_ADD_ATTRIBUTE(new_sess->s_attr, attr);
917 if (sdp_add_media(new_sess, media->m_name,
937 new_media->m_session = new_sess;
940 return (new_sess);
942 sdp_free_session(new_sess);