Adam Moffett
2011-Sep-23 16:18 UTC
[asterisk-users] Force a SIP friend to use a certain IP?
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?
Ruben Rögels
2011-Sep-23 16:40 UTC
[asterisk-users] Force a SIP friend to use a certain IP?
> 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
Adam Moffett
2011-Sep-23 17:15 UTC
[asterisk-users] Force a SIP friend to use a certain IP?
>> 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, > RubenThanks, I was afraid of that.
Robles Román, José Miguel
2011-Sep-26 09:22 UTC
[asterisk-users] Force a SIP friend to use a certain IP?
> -----Mensaje original----- > De: asterisk-users-bounces at 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.