# How Wowza can switch from primary to backup when stream registered in StartupStreams?

**URL:** <https://community.wowza.com/t/how-wowza-can-switch-from-primary-to-backup-when-stream-registered-in-startupstreams/37683>\
**Category:** Wowza Streaming Engine\
**Created:** [May 21, 2013, 3:44pm UTC](https://community.wowza.com/t/how-wowza-can-switch-from-primary-to-backup-when-stream-registered-in-startupstreams/37683 "2013-05-21T15:44:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_Denis](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@Denis\_Denis](https://community.wowza.com/u/Denis_Denis)\
**Post date:** [May 21, 2013, 3:44pm UTC](https://community.wowza.com/t/how-wowza-can-switch-from-primary-to-backup-when-stream-registered-in-startupstreams/37683/1 "2013-05-21T15:44:52Z")

</div>

Hello.

We have 2 licensed wowza servers. Origin and edge.

We have 2 channels between them: inner and outer (by inet).

According to [this arcticle](http://community.wowza.com/t/-/34720)I want to use our channels from the StartupStreams.xml to solve problem with Request Timeout on cupertino stream.

Sometimes our inner channel down and we’ve use outer channel.

What I have to read in \*.stream file that wowza automatically switches from inner channel to outer channel?

For example:

in my StartupStreams.xml:

live/_definst_

rtp

myChannel.stream

in \Wowza Media Server\content\myChannel.stream:

rtsp://inner\_ip:1935/app\_name/myChannel

rtsp://outer\_ip:1935/app\_name/myChannel

Is it right metod or I need to use another one?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [May 21, 2013, 7:19am UTC](https://community.wowza.com/t/how-wowza-can-switch-from-primary-to-backup-when-stream-registered-in-startupstreams/37683/2 "2013-05-21T07:19:41Z")

</div>

Hi Denis,

I think stream failover in a .stream file only works for live-repeater, but not for rtsp according to my test.

At present this is the way to achieve failover:

[How to configure a live stream repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

Salvadore

---

<div class="post-metadata">

**Author:** ![Denis\_Denis](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@Denis\_Denis](https://community.wowza.com/u/Denis_Denis)\
**Post date:** [May 21, 2013, 5:06pm UTC](https://community.wowza.com/t/how-wowza-can-switch-from-primary-to-backup-when-stream-registered-in-startupstreams/37683/3 "2013-05-21T17:06:20Z")

</div>

Hi, Salvadore!

We have 2 servers. On both of them Wowza Media Server 3.1.2.16 build3037

On our origin server:

> **liverepeater-origin**
> 
> cupertinostreaming **packetizer** , sanjosestreaming **packetizer** , smoothstreaming **packetizer**
> 
> On our edge server:
> 
> > **liverepeater-edge**
> > 
> > sanjosestreaming **repeater** ,cupertinostreaming **repeater** ,smoothstreaming **repeater**
> > 
> > wowz:// **inner\_ip** :1935/app\_name|wowz:// **outer\_ip** :1935/app\_name
> > 
> > inner\_ip - is inner IP of the Origin server.
> > 
> > outer\_ip - is outer IP of the Origin server.
> > 
> > Thanks!
