[asterisk-users] Sending Calls via SIP trunk from two different IP addresses from same Asterisk Machine

Jeff LaCoursiere jeff at jeff.net
Sun Feb 1 11:44:50 CST 2009


I am confused as to what you are trying to accomplish.  Can you be more 
specific?  It seems that you are making this too complicated.  You say 
that the remote end is providing you two SIP trunks that will come from 
the same IP address.  To distinguish them simply have them authenticate 
with two different usernames.

This does beg the question, though, if the endpoint is the same, why have 
a separate trunk?  How about routing the calls based on differing CID?

If you can explain the situation more distinctly perhaps an alternate 
method will present itself.  Hard to imagine a real need for binding to 
multiple local IP addresses on the asterisk side.

If you are REALLY stuck on doing it that way, however, how about simply 
running a second instance of asterisk?  You would have to recompile the 
source to read config from a second tree, but then your second instance 
could bind to your aliased address.  I suppose you could even trunk the 
two together if the two instances must pass traffic between each other.

How odd :)

j



On Sun, 1 Feb 2009, bilal ghayyad wrote:

> Hi All;
>
> I can assign for my Asterisk Machine a two IP addresses (xxx.xxx.xxx.yyy and xxx.xxx.xxx.yyz), how can I use these two IP's so I can let one call sent with a source IP address xxx.xxx.xxx.yyy and another call to be sent with another source IP address xxx.xxx.xxx.yyz, I need this because I need the side to authorize my calls by the IP address, and some calls to be authorized with the first IP address and other calls to be authorized with another IP address, ofcourse I have some reason for this.
>
> The idea is: how to control the source IP address that I am sending from it to the other side?
>
> Can I determine the source IP address of the SIP trunk while I am configuing my SIP section for that connection? What about the bindaddress?
>
> Any help?
> Regards
> Bilal
>
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list