EM
Erkan Malik AFACAN (BİLGEM)
Mon, Sep 23, 2019 12:39 PM
Hi,
I am creating UDP transport with default transport config and with specific port value e.g. 5060. In some cases in my application user should change and determine this port value manually. For example if I create first UDP transport with 5060 port then user can decide to change this value to 5062 manually. How can I achieve this in most elegant way? Is there any way to change port number of current transport without creating new one and delete unused one?
In current scenario, I am creating new UDP transport with new port value keep transport_id of old transport then i call pjsua_acc_modify() with new UDP transport and then call pjsua_transport_close(old_transport_id) to delete unused UDP transports. But as I saw PJSIP does not destroy old transports and when my application exceeds MAX number of allowed transports, application fails since it try to create new transports. I look forward to hearing from you folk. Thanks.
Erkan
Hi,
I am creating UDP transport with default transport config and with specific port value e.g. 5060. In some cases in my application user should change and determine this port value manually. For example if I create first UDP transport with 5060 port then user can decide to change this value to 5062 manually. How can I achieve this in most elegant way? Is there any way to change port number of current transport without creating new one and delete unused one?
In current scenario, I am creating new UDP transport with new port value keep transport_id of old transport then i call pjsua_acc_modify() with new UDP transport and then call pjsua_transport_close(old_transport_id) to delete unused UDP transports. But as I saw PJSIP does not destroy old transports and when my application exceeds MAX number of allowed transports, application fails since it try to create new transports. I look forward to hearing from you folk. Thanks.
Erkan