Skip to content

Commit

Permalink
KZOO-8: correctly set switch_nodename for kapps_call on record_stop (#…
Browse files Browse the repository at this point in the history
…6092)

- the code used to send the AMQP message to store the recording uses
the switch_nodename to target that message, set it correctly to fix the
issue of recordings not storing properly when it is not set
  • Loading branch information
mark2600 authored and k-anderson committed Oct 11, 2019
1 parent 4e35d4d commit fb8f806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/kazoo_call/src/kzc_recording.erl
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,11 @@ handle_cast({'record_stop', {_, MediaName}=Media, FS, EventJObj},
}=State) ->
lager:debug("received record_stop, storing recording ~s", [MediaName]),
Call1 = kapps_call:kvs_store(<<"FreeSwitch-Node">>, FS, Call),
Call2 = kapps_call:set_switch_nodename(FS, Call1),
gen_server:cast(self(), 'store_recording'),
maybe_stop_timer(TRef),
{'noreply', State#state{media=Media
,call=Call1
,call=Call2
,stop_received='true'
,event=EventJObj
,timer_ref='undefined'
Expand Down

0 comments on commit fb8f806

Please sign in to comment.