# \[HELP\] One asterisk server, 2 dsl lines and 2 voip providers

**URL:** <https://community.asterisk.org/t/help-one-asterisk-server-2-dsl-lines-and-2-voip-providers/4193>\
**Category:** Asterisk Support\
**Created:** [February 6, 2006, 9:00am UTC](https://community.asterisk.org/t/help-one-asterisk-server-2-dsl-lines-and-2-voip-providers/4193 "2006-02-06T09:00:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![masadi](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/masadi/32/1385_2.png) [@masadi](https://community.asterisk.org/u/masadi)\
**Post date:** [February 6, 2006, 9:00am UTC](https://community.asterisk.org/t/help-one-asterisk-server-2-dsl-lines-and-2-voip-providers/4193/1 "2006-02-06T09:00:54Z")

</div>

Hi to all!

I would like to understand if it is possible manage this situation:

I have a configured and well working asterisk server with 6 SIP accounts. 5 are from the same VoIP provider (provider1). One account is from another one (provider2).

I also have 2 DSL lines so I would like to use the first\_router with the provider1 and the second\_router for the provider2

My idea was to setup a routing like this:

route add default gw first\_router (for all, including [viip.provider1.com](http://viip.provider1.com))  
route add -host [voip.provider2.com](http://voip.provider2.com) gw second\_router

I tried this solution but also the [voip.provider2.com](http://voip.provider2.com) is reached on the first\_router, that is the default router.

May be this is because I defined the externip that is the external ip of the first\_router?

I tried to find more info but I am not sure if it is possible to setup 2 different externip and also if it possible to manage this kind of situation.

Any ideas on how to solve the problem?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![zmanea](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@zmanea](https://community.asterisk.org/u/zmanea)\
**Post date:** [February 7, 2006, 5:15am UTC](https://community.asterisk.org/t/help-one-asterisk-server-2-dsl-lines-and-2-voip-providers/4193/2 "2006-02-07T05:15:55Z")

</div>

Are you saying that [voip.provider2.com](http://voip.provider2.com) is trying to come back through first\_router even with a route that sends it out the second router?

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [February 7, 2006, 6:06am UTC](https://community.asterisk.org/t/help-one-asterisk-server-2-dsl-lines-and-2-voip-providers/4193/3 "2006-02-07T06:06:46Z")

</div>

> [@zmanea](#):
>
> Are you saying that [voip.provider2.com](http://voip.provider2.com) is trying to come back through first\_router even with a route that sends it out the second router?

i would have thought that the externip setting in sip.conf would have kinda guaranteed that !!

not sure how to “fix” this, i guess you could either rewrite all packets destined for the affected provider, or it might be easier to write “chan\_sip2” ❓

---

<div class="post-metadata">

**Author:** ![masadi](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/masadi/32/1385_2.png) [@masadi](https://community.asterisk.org/u/masadi)\
**Post date:** [February 7, 2006, 8:42am UTC](https://community.asterisk.org/t/help-one-asterisk-server-2-dsl-lines-and-2-voip-providers/4193/4 "2006-02-07T08:42:52Z")

</div>

Well,

also if the [voip.provider2.com](http://voip.provider2.com) route is set to the second router, asterisk uses in any case the first router also for the second sip provider.

Using the traceroute function the route isc correctly displayed. But asterisk things different.

But I just discovered thath all is OK with IAX instead of SIP. In fact the provider2 is another asterisk that uses the same ISP of my second router.

I asked to configure for my asterisk an Iax extension and trunk. Now all is ok!

Many thanks!
