]> git.ipfire.org Git - thirdparty/asterisk.git/commit
json: Take advantage of new API's.
authorCorey Farrell <git@cfware.com>
Tue, 17 Jul 2018 03:55:02 +0000 (23:55 -0400)
committerCorey Farrell <git@cfware.com>
Mon, 24 Sep 2018 19:50:50 +0000 (14:50 -0500)
commit7b0dbda9367961a287ccfcf069a239cf5a6143d9
tree7a27261bc744eced2a59c24b87acecbb90442f9b
parent3ddfeccf35635e41d307e6d572faa7ca44939ea4
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
main/json.c
main/rtp_engine.c
main/stasis.c
res/res_stasis.c
res/res_stasis_playback.c
res/res_stasis_recording.c