"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "res/res_pjsip_transport_websocket.c" between
asterisk-18.12.0.tar.gz and asterisk-18.12.1.tar.gz

About: Asterisk is a software implementation of a telephone private branch exchange (PBX) that turns an ordinary computer into a voice communications server. 18.x series (long term support).

res_pjsip_transport_websocket.c  (asterisk-18.12.0):res_pjsip_transport_websocket.c  (asterisk-18.12.1)
skipping to change at line 228 skipping to change at line 228
} else { } else {
newtransport->transport.key.type = transport_type_wss; newtransport->transport.key.type = transport_type_wss;
} }
newtransport->transport.addr_len = pj_sockaddr_get_len(&newtransport->tra nsport.key.rem_addr); newtransport->transport.addr_len = pj_sockaddr_get_len(&newtransport->tra nsport.key.rem_addr);
ws_addr_str = ast_sockaddr_stringify(ast_websocket_local_address(newtrans port->ws_session)); ws_addr_str = ast_sockaddr_stringify(ast_websocket_local_address(newtrans port->ws_session));
pj_sockaddr_parse(pj_AF_UNSPEC(), 0, pj_cstr(&buf, ws_addr_str), &newtran sport->transport.local_addr); pj_sockaddr_parse(pj_AF_UNSPEC(), 0, pj_cstr(&buf, ws_addr_str), &newtran sport->transport.local_addr);
pj_strdup2(pool, &newtransport->transport.local_name.host, ast_sockaddr_s tringify_addr(ast_websocket_local_address(newtransport->ws_session))); pj_strdup2(pool, &newtransport->transport.local_name.host, ast_sockaddr_s tringify_addr(ast_websocket_local_address(newtransport->ws_session)));
newtransport->transport.local_name.port = ast_sockaddr_port(ast_websocket _local_address(newtransport->ws_session)); newtransport->transport.local_name.port = ast_sockaddr_port(ast_websocket _local_address(newtransport->ws_session));
pj_strdup2(pool, &newtransport->transport.remote_name.host, ast_sockaddr_ stringify_addr(ast_websocket_remote_address(newtransport->ws_session)));
newtransport->transport.flag = pjsip_transport_get_flag_from_type((pjsip_ transport_type_e)newtransport->transport.key.type); newtransport->transport.flag = pjsip_transport_get_flag_from_type((pjsip_ transport_type_e)newtransport->transport.key.type);
newtransport->transport.dir = PJSIP_TP_DIR_INCOMING; newtransport->transport.dir = PJSIP_TP_DIR_INCOMING;
newtransport->transport.tpmgr = tpmgr; newtransport->transport.tpmgr = tpmgr;
newtransport->transport.send_msg = &ws_send_msg; newtransport->transport.send_msg = &ws_send_msg;
newtransport->transport.destroy = &ws_destroy; newtransport->transport.destroy = &ws_destroy;
status = pjsip_transport_register(newtransport->transport.tpmgr, status = pjsip_transport_register(newtransport->transport.tpmgr,
(pjsip_transport *)newtransport); (pjsip_transport *)newtransport);
if (status != PJ_SUCCESS) { if (status != PJ_SUCCESS) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)