Hi: >For sip, I added pj_setsockopt inside this function udp_set_socket(). > >but for rtp, I added pj_setsockopt() inside this function pjmedia_transport_udp_create3(), but with not success like with sip. I mean, the code >point of the message it still being 0x00, and not the one I previously setted. The function pjmedia_transport_udp_create3() isn't called from pjsua, but pjmedia_transport_udp_attach() is called from file pjsua_media.c. I've been doing some tracing, and don't know which is the difference between pj_sock_bind_in and pj_sock_bind (without _in)??? and if create_rtp_rtcp_sock() from file ./pjsip/src/pjsua-lib/pjsua_media.c creates some kind of bidirecctional sockets (the sockets for rtp 4000)???, what I want to do is to set for outgoing messages a DSCP code point into IP header using setsockopt. please any help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080423/ba80d050/attachment.html