# How to implement the callback when a rtsp recorder source is coming?

**URL:** <https://community.wowza.com/t/how-to-implement-the-callback-when-a-rtsp-recorder-source-is-coming/44480>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [December 19, 2014, 2:28am UTC](https://community.wowza.com/t/how-to-implement-the-callback-when-a-rtsp-recorder-source-is-coming/44480 "2014-12-19T02:28:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Licaksm\_alsdkj](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Licaksm\_alsdkj](https://community.wowza.com/u/Licaksm_alsdkj)\
**Post date:** [December 19, 2014, 2:28am UTC](https://community.wowza.com/t/how-to-implement-the-callback-when-a-rtsp-recorder-source-is-coming/44480/1 "2014-12-19T02:28:56Z")

</div>

I want to let my wowza server to call an http api or run some codes in a callback when a live source is incoming.

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [December 20, 2014, 12:21am UTC](https://community.wowza.com/t/how-to-implement-the-callback-when-a-rtsp-recorder-source-is-coming/44480/2 "2014-12-20T00:21:57Z")

</div>

Hi,

You can use onPublish IMediaStreamActionNotify3, there’s a [guide here.](https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server#IMediaStreamActionNotify3)

handles rtmp / rtsp on publish events. We do suggest threading any operations done here to external databases or servers.

Daren
