Re: [asterisk-users] Force a SIP friend to use a certain IP?

2011-09-26 Thread Robles Román , José Miguel
 -Mensaje original-
 De: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-

 Suppose I have two IP aliases on one asterisk box.

 I have to talk to SIP friend A using IP x.x.x.x and I have to talk to
 SIP friend  B using IP y.y.y.y.
 (In case you're wondering, the reason is that we have two accounts with
 a service provider and different features and rates are tied to the two
 different accounts.)

 So I was hoping I would be able to set the source IP that we use when
 talking to the two different SIP friends.  I see externip in general
 options, but is there nothing equivalent that can be set per user/peer?


Perhaps it could be achieved configuring different newtwork interfaces (or 
different ports) for the two peers (or two set of peers) and using iptables to 
change the source address of outgoing packets through SNAT rules.

Best Regards,
José Miguel



Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, 
contiene información de carácter confidencial exclusivamente dirigida a su 
destinatario o destinatarios. Si no es vd. el destinatario indicado, queda 
notificado que la lectura, utilización, divulgación y/o copia sin autorización 
está prohibida en virtud de la legislación vigente. En el caso de haber 
recibido este correo electrónico por error, se ruega notificar inmediatamente 
esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) 
confidential information that is exclusively addressed to its recipient(s). If 
you are not the indicated recipient, you are informed that reading, using, 
disseminating and/or copying it without authorisation is forbidden in 
accordance with the legislation in effect. If you have received this email by 
mistake, please immediately notify the sender of the situation by resending it 
to their email address.
Avoid printing this message if it is not absolutely necessary.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Force a SIP friend to use a certain IP?

2011-09-23 Thread Ruben Rögels
 So I was hoping I would be able to set the source IP that we use when
 talking to the two different SIP friends.  I see externip in general
 options, but is there nothing equivalent that can be set per user/peer?

Hi,

as far as I know, you cant do this on a per peer basis.
I suppose you run two asterisk daemons, each one of them on a different
external IP. In this setup you can route calls from A over one asterisk
daemon and calls from B over the other asterisk daemon.

Sounds a little bit like an overkill scenario, but it woul work.


best regards,
Ruben

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Force a SIP friend to use a certain IP?

2011-09-23 Thread Adam Moffett



So I was hoping I would be able to set the source IP that we use when
talking to the two different SIP friends.  I see externip in general
options, but is there nothing equivalent that can be set per user/peer?

Hi,

as far as I know, you cant do this on a per peer basis.
I suppose you run two asterisk daemons, each one of them on a different
external IP. In this setup you can route calls from A over one asterisk
daemon and calls from B over the other asterisk daemon.

Sounds a little bit like an overkill scenario, but it woul work.


best regards,
Ruben

Thanks, I was afraid of that.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users