json: Take advantage of new API's.
* Use "o*" format specifier for optional fields in ast_json_party_id. * Stop using ast_json_deep_copy on immutable objects, it is now thread safe to just use ast_json_ref. Additional changes to ast_json_pack calls in the vicinity: * Use "O" when an object needs to be bumped. This was previously avoided as it was not thread safe. * Use "o?" and "O?" to replace NULL with ast_json_null(). The "?" is a new feature of ast_json_pack starting with Asterisk 16. Change-Id: I8382d28d7d83ee0ce13334e51ae45dbc0bdaef48
Showing
- main/json.c 7 additions, 29 deletionsmain/json.c
- main/rtp_engine.c 3 additions, 3 deletionsmain/rtp_engine.c
- main/stasis.c 2 additions, 2 deletionsmain/stasis.c
- res/res_stasis.c 3 additions, 3 deletionsres/res_stasis.c
- res/res_stasis_playback.c 2 additions, 2 deletionsres/res_stasis_playback.c
- res/res_stasis_recording.c 2 additions, 2 deletionsres/res_stasis_recording.c
Loading
Please register or sign in to comment