ProxyCandidate function ( String arg0 , String arg1 , String arg2 , int arg3 , String arg4 , int arg5 ) { RelaySession loc0 = new RelaySession ( arg0 , arg1 , ipAddress , arg2 , arg3 , arg4 , arg5 , minPort , maxPort ) ; sessions . put ( arg0 , loc0 ) ; loc0 . addKeepAlive ( idleTime ) ; loc0 . addLifeTime ( lifetime ) ; loc0 . addAgentListener ( this ) ; return loc0 ; }
add a new dynamic session to the mediaproxy for defined ips and ports . the ip and port pairs can change depending of the senders ip and port . which means that the ip and port values of the points can dynamic change after the channel is opened . when the agent receives a packet from point a , the channel set the point a ip and port according to the received packet sender ip and port . every packet received from point b will be relayed to the new point a ip and port . when the agent receives a packet from point b , the channel set the point b ip and port according to the received packet sender ip and port . every packet received from point a will be relayed to the new point b ip and port . create a dynamic channel between two ips . dynamic point a - dynamic point b concode_field_sep int minPort concode_elem_sep long idleTime concode_elem_sep String ipAddress concode_elem_sep Logger Log concode_elem_sep long lifetime concode_elem_sep Map<String,MediaProxySession> sessions concode_elem_sep int maxPort concode_field_sep long getLifetime concode_elem_sep int getMinPort concode_elem_sep Collection<MediaProxySession> getSessions concode_elem_sep void sessionClosed concode_elem_sep void setMaxPort concode_elem_sep long getIdleTime concode_elem_sep String getPublicIP concode_elem_sep int getMaxPort concode_elem_sep void setMinPort concode_elem_sep void setLifetime concode_elem_sep void stopProxy concode_elem_sep void setIdleTime concode_elem_sep MediaProxySession getSession