In order to match the lastest ICE draft, I need to add username attributes in STUN response message. I hacked PJSIP version 1.0.2. in file stun_session.c and function: static pj_status_t apply_msg_options(pj_stun_session *sess, pj_pool_t *pool, const pj_stun_req_cred_info *auth_info, pj_stun_msg *msg) I added an "if" block for STUN response message: * /* Create and add USERNAME attribute if needed */ if (username.slen && PJ_STUN_IS_RESPONSE(msg->hdr.type)) { status = pj_stun_msg_add_string_attr(pool, msg, PJ_STUN_ATTR_USERNAME, &username); PJ_ASSERT_RETURN(status==PJ_SUCCESS, status); }* the username is not the same as the one in the STUN request. The length of the string is more than 1000 char. then I try to use "sess->cred.data.static_cred.username" as the username, result is even worse. Can anyone help me ? Thanka a lot. -- Best Regards Santtu (Xiang Liu) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090422/2efe7deb/attachment.html>