[asterisk-users] Force a SIP friend to use a certain IP?
Robles Román, José Miguel
jmrroman at indra.es
Mon Sep 26 04:22:59 CDT 2011
> -----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.
More information about the asterisk-users
mailing list