Hi Romain, Thank you very much for your information. Can we not do like this for DSCP in PJSip.=> pjsua_transport_config_default(&mtcfg); mtcfg.port = 4000; mtcfg.qos_type = PJ_QOS_TYPE_VOICE; mtcfg.qos_params.flags = PJ_QOS_PARAM_HAS_DSCP; mtcfg.qos_params.dscp_val = 0x2e; On Tue, May 14, 2013 at 5:01 AM, Romain JEZEQUEL <romainjezequel at yahoo.fr>wrote: > Hi Ramu, > > You can use the following API : > > /* Update QOS for UDP transport */ > pj_qos_type qos_type = /* YOUR VALUE */ > pj_qos_params qos_params; > pj_qos_get_params(qos_type, &qos_params); > > pj_sock_t udp_sock = pjsip_udp_transport_get_socket(wan_transport); > pj_sock_apply_qos(udp_sock, qos_type, &qos_params, 2, NULL /* > Optionnal*/, NULL /* Optionnal*/); > > /* Update QOS for TCP transport */ > /* Get default config */ > pjsip_tcp_transport_cfg tcp_cfg; > pjsip_tcp_transport_cfg_default(&tcp_cfg, pj_AF_INET()); > > /* Set QOS */ > tcp_cfg.qos_type = qos_type; > tcp_cfg.qos_params.flags = qos_params.flags; > tcp_cfg.qos_params.dscp_val = qos_params.dscp_val; > > /* Start transport */ > status = pjsip_tcp_transport_start3( app->h_sip_endpt, &tcp_cfg, > &wan_transport_fact); > > Regards, > > Romain > > > ------------------------------ > *De :* Ramu <contactramu at gmail.com> > *? :* pjsip list <pjsip at lists.pjsip.org> > *Envoy? le :* Mardi 14 mai 2013 6h15 > *Objet :* [pjsip] PJSIP QOS using DSCP > > Hi There, > > Is anybody done QOS using DSCP in iOS/Android PJSIP versions? > > Please let us know how can we configure DSCP on client side? > > Thank you > > -- > Ramu > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Ramu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130514/509f1843/attachment-0001.html>