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:47:37 +0000 (15:47 -0400)
commit93777faf360b822b389535c465223a0e63ba5528
treec67c1de5a30c94875e1fb4553d689110816d82a4
parent6e1cf9de6b6f9283fea508469858aad7a3d3124e
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