Lines Matching refs:origin
302 sdp_origin_t *origin; in sdp_add_origin() local
311 origin = calloc(1, sizeof (sdp_origin_t)); in sdp_add_origin()
312 if (origin == NULL) in sdp_add_origin()
314 origin->o_id = id; in sdp_add_origin()
315 origin->o_version = ver; in sdp_add_origin()
316 if ((ret = commp_add_str(&origin->o_username, name, strlen(name))) != 0) in sdp_add_origin()
318 if ((ret = commp_add_str(&origin->o_nettype, nettype, in sdp_add_origin()
322 if ((ret = commp_add_str(&origin->o_addrtype, addrtype, in sdp_add_origin()
326 if ((ret = commp_add_str(&origin->o_address, address, in sdp_add_origin()
330 session->s_origin = origin; in sdp_add_origin()
333 sdp_free_origin(origin); in sdp_add_origin()
830 sdp_origin_t *origin; in sdp_clone_session() local
851 origin = session->s_origin; in sdp_clone_session()
852 if (origin != NULL && (sdp_add_origin(new_sess, origin->o_username, in sdp_clone_session()
853 origin->o_id, origin->o_version, origin->o_nettype, origin-> in sdp_clone_session()
854 o_addrtype, origin->o_address) != 0)) { in sdp_clone_session()
965 sdp_origin_t *origin; in sdp_session_to_str() local
994 origin = session->s_origin; in sdp_session_to_str()
995 if (origin != NULL) { in sdp_session_to_str()
997 origin->o_username, origin->o_id, origin->o_version, in sdp_session_to_str()
998 origin->o_nettype, origin->o_addrtype, origin->o_address, in sdp_session_to_str()