[asterisk-bugs] [Asterisk 0015190]: Ability to assign which nic card or mac address to use for each trunk in sip.conf

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 25 00:52:14 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15190 
====================================================================== 
Reported By:                bsgcic
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15190
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.25-rc1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-25 00:23 CDT
Last Modified:              2009-05-25 00:52 CDT
====================================================================== 
Summary:                    Ability to assign which nic card or mac address to
use for each trunk in sip.conf
Description: 
For devices with more than one ethernet nic card (mac address), when
configuring trunks in sip.conf or users.conf, need ability to assign which
ethernet nic card (or mac address) to use for each trunk.
This is needed for users in Japan. NTT began configuring the firmware of
its internet access routers (that it supplies customers and requires them
to use) such that the routers now restrict registration of only one Mac
Address for each voip device that registers with its router. The NTT router
will reject any attempts to register a second trunk from the same mac
address that was used to register another trunk. This prevents the ability
to register more than one trunk from the same nic card connection which is
needed to have the Asterisk devices manage more than one phone number with
NTT.
Currently, even if there are more than one ethernet card within the
asterisk device, Asterisk always uses eth0 despite eth1 also being
available and on the same network. Need ability to specify to eth0 for one
trunk (e.g. trunk 1) and eth1 for another trunk (e.g. trunk 2).

The same trunk for more than one phone number cannot be used with NTT's
router setup. Inbound calls will only be received for one phone number even
if multiple numbers are assigned to the same trunk within the NTT router
setup. Additionally, outbound calls will all show the same caller-id
because the caller-id that is sent out on outgoing calls is set by the NTT
router regardless of what the Asterisk device sends the NTT router.
Configuration for the caller-id is made within the settings for the NTT
router itself. Within these settings, one specifies which of the phone
numbers being rented from NTT is to be used for the trunk.

This restriction is true for all of the routers that NTT now supplies
customers. It is a new policy change that became effective during 2008
(looks like towards the end of last year).

====================================================================== 

---------------------------------------------------------------------- 
 (0105355) xrg (reporter) - 2009-05-25 00:52
 https://issues.asterisk.org/view.php?id=15190#c105355 
---------------------------------------------------------------------- 
Some comments:
This would be a major feature, better be developed against 1.6-trunk, not
1.4.

The feature would be the ability to bind to multiple interfaces for sip.c
and perhaps allow to explicitly choose the interfaces per sip peer. Last
time I'd seen the code, was doable but still required major restructure
there. IAX has such an infrastructure. At SIP, it is a little more
complicated, since SIP could be UDP and wouldn't have a "connection".

Multiple interfaces binding would also solve some routing problems, like
the case of multipath (*very* useful, once we could make it work).

I vote for the feature! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-25 00:52 xrg            Note Added: 0105355                          
======================================================================




More information about the asterisk-bugs mailing list