Two NIC Cards

Discussion in '3CX Phone System - General' started by djsuperstore, Feb 20, 2008.

  1. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    Hello,

    I want to run 3cx on our existing Windows 2003 server. We have the main NIC connected to our 1st broadband for the data. I have added a second NIC card that is connected to a seperate broadband for our VOIP. Question is can I tell 3cx to use a specific network adapter for the VOIP trafic?
     
  2. matthijsolislagers

    matthijsolislagers New Member

    Joined:
    Jan 22, 2008
    Messages:
    140
    Likes Received:
    0
    In Windows Server 2003 you can only specify a gateway for one network card. This means all your internet traffic will go over that network card by default.

    You could enter a static route to your voip provider in your situation.

    just enter in a command window

    ROUTE ADD [IP VOIP PROVIDER] [255.255.255.255] [IP SECOND NETWORK CARD] -P

    Now all internet traffic will go over the first network card except for the ip you entered in the static route.
    If there are more ip's you could specify more ip's
     
  3. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    Thanks for the information, tried this and all the traffic goes out on the second DSL
     
  4. matthijsolislagers

    matthijsolislagers New Member

    Joined:
    Jan 22, 2008
    Messages:
    140
    Likes Received:
    0
    so all is ok now?
     
  5. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    Not quite. I need to get the system running using the 1st NIC until I get my number ported over then I want to enable the route. I'm having trouble getting internal extensions talking to each other, see post

    http://www.3cx.com/forums/unable-to-make-internal-calls-4342.html
     
  6. matthijsolislagers

    matthijsolislagers New Member

    Joined:
    Jan 22, 2008
    Messages:
    140
    Likes Received:
    0
    please post route print
     
  7. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    17:11:20.218 Call::Terminate [CM503008]: Call(2): Call is terminated
    17:11:20.078 Call::RouteFailed [CM503014]: Call(2): Attempt to reach [sip:10@192.168.1.15;user=phone] failed. Reason: Forbidden
    17:11:20.078 CallLeg::eek:nFailure [CM503003]: Call(2): Call to sip:10@192.168.1.15 has failed; Cause: 403 Use Proxy; from IP:192.168.1.100:2057
    17:11:20.000 MediaServerReporting::SetRemoteParty [MS210006] C:2.2:Offer provided. Connection(by pass mode): 192.168.1.102:55732(55733)
    17:11:19.984 CallCtrl::eek:nSelectRouteReq [CM503004]: Call(2): Calling: Ext:10@[Dev:sip:10@192.168.1.100:2057;line=at9dh5rf]
    17:11:19.984 CallCtrl::eek:nSelectRouteReq [CM503010]: Making route(s) to [sip:10@192.168.1.15;user=phone]
    17:11:19.984 MediaServerReporting::SetRemoteParty [MS210000] C:2.1:Offer received. RTP connection: 192.168.1.102:55732(55733)
    17:11:19.968 CallLeg::setRemoteSdp Remote SDP is set for legC:2.1
    17:11:19.968 Extension::printEndpointInfo [CM505001]: Ext.11: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [snom300/7.1.30] Transport: [sip:192.168.1.15:5060]
    17:11:19.921 CallCtrl::eek:nIncomingCall [CM503001]: Call(2): Incoming call from Ext.11 to [sip:10@192.168.1.15;user=phone]
    17:11:19.921 CallLeg::eek:nNewCall [CM500002]: Info on incoming INVITE:
    INVITE sip:10@192.168.1.15;user=phone SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.102:2057;branch=z9hG4bK-rsnowtf9orpq;rport=2057
    Max-Forwards: 70
    Contact: [sip:11@192.168.1.102:2057;line=6lmrzat5];flow-id=1
    To: [sip:10@192.168.1.15;user=phone]
    From: "Shopdesk"[sip:11@192.168.1.15];tag=j0faguswh4
    Call-ID: 3c26746f22b5-jki3whidlt9o
    CSeq: 2 INVITE
    Session-Expires: 3600;refresher=uas
    Min-SE: 90
    Accept: application/sdp
    Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO
    Proxy-Authorization: Digest username="11",realm="3CXPhoneSystem",nonce="12848260279:ba3439bc2c71319bd58e17bda18b15cb",uri="sip:10@192.168.1.15;user=phone",response="3af498e8201d34b6570c730d285c58e9",algorithm=MD5
    Supported: timer, 100rel, replaces, callerid
    User-Agent: snom300/7.1.30
    Allow-Events: talk, hold, refer, call-info
    Content-Length: 0
    P-Key-Flags: keys="3"
     
  8. Pentangle

    Pentangle Member

    Joined:
    Dec 6, 2007
    Messages:
    261
    Likes Received:
    0
    No, what he wanted was a route print.

    i.e. go to the server, open a CMD prompt, type "route print" and press enter, mark and copy the output and paste it in here.
     
  9. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    Code:
    IPv4 Route Table
    ===========================================================================
    Interface List
    0x1 ........................... MS TCP Loopback interface
    0x2 ...00 0f ea 4f 76 f6 ...... NVIDIA nForce Networking Controller
    0x3 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
    0x4 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
    0x5 ...7a 79 05 61 1c ca ...... Hamachi Network Interface
    ===========================================================================
    ===========================================================================
    Active Routes:
    Network Destination        Netmask          Gateway       Interface  Metric
              0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.15     20
              5.0.0.0        255.0.0.0      5.97.28.202      5.97.28.202     20
          5.97.28.202  255.255.255.255        127.0.0.1        127.0.0.1     20
        5.255.255.255  255.255.255.255      5.97.28.202      5.97.28.202     20
            127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1      1
          192.168.1.0    255.255.255.0     192.168.1.15     192.168.1.15     20
         192.168.1.15  255.255.255.255        127.0.0.1        127.0.0.1     20
         192.168.1.16  255.255.255.255        127.0.0.1        127.0.0.1     20
         192.168.1.20  255.255.255.255        127.0.0.1        127.0.0.1     20
         192.168.1.21  255.255.255.255        127.0.0.1        127.0.0.1     20
         192.168.1.22  255.255.255.255        127.0.0.1        127.0.0.1     20
        192.168.1.255  255.255.255.255     192.168.1.15     192.168.1.15     20
         192.168.13.0    255.255.255.0     192.168.13.1     192.168.13.1     20
         192.168.13.1  255.255.255.255        127.0.0.1        127.0.0.1     20
       192.168.13.255  255.255.255.255     192.168.13.1     192.168.13.1     20
        192.168.184.0    255.255.255.0    192.168.184.1    192.168.184.1     20
        192.168.184.1  255.255.255.255        127.0.0.1        127.0.0.1     20
      192.168.184.255  255.255.255.255    192.168.184.1    192.168.184.1     20
            224.0.0.0        240.0.0.0      5.97.28.202      5.97.28.202     20
            224.0.0.0        240.0.0.0     192.168.1.15     192.168.1.15     20
            224.0.0.0        240.0.0.0     192.168.13.1     192.168.13.1     20
            224.0.0.0        240.0.0.0    192.168.184.1    192.168.184.1     20
      255.255.255.255  255.255.255.255      5.97.28.202      5.97.28.202      1
      255.255.255.255  255.255.255.255     192.168.1.15     192.168.1.15      1
      255.255.255.255  255.255.255.255     192.168.13.1     192.168.13.1      1
      255.255.255.255  255.255.255.255    192.168.184.1    192.168.184.1      1
    Default Gateway:       192.168.1.1
    ===========================================================================
    Persistent Routes:
      None
    
     
  10. matthijsolislagers

    matthijsolislagers New Member

    Joined:
    Jan 22, 2008
    Messages:
    140
    Likes Received:
    0
    Strange routing table..

    Can you provide me:

    IP-address of Router 1
    IP-address of Router 2
    IP-address of network-card 1
    IP-address of network-card 2
    IP-address of VOIP provider 1
    IP-address of VOIP provider 2

    Maybe I can help you fix it.

    Thanks
     
  11. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    Only 1 router connected at the moment.

    1st IP Address : 192.168.1.1
    1st Subnet Mask : 255.255.255.0

    DHCP Start IP Address : 192.168.1.100
    IP Pool Counts : 100
    Gateway IP Address : 192.168.1.1
    DNS Server IP Address : 192.168.1.15

    The Server is set up as a DNS server.
     
  12. matthijsolislagers

    matthijsolislagers New Member

    Joined:
    Jan 22, 2008
    Messages:
    140
    Likes Received:
    0
    I'm sorry I was still looking at the 2NIC problem. Still your routing table looks strange to me. Does your server has 4 interfaces. From your routing table I can see 4 interfaces:

    192.168.1.15 -> ip of server
    5.97.28.202 -> hamachi I guess
    192.168.13.1 -> where does this ip come from
    192.168.184.1 -> this one I also don't understand

    The reason your internal calls go wrong is Forbidden. This is quite strange for internal calls but maybe it had something to do with the multiple ip's. What you could do is enter the LocalSubnets in your ini file. See other posts or manual how to do this.

    Something else you could try is connect by hostname. Enter the hostname of the server in the 3CX console under General and connect your phones to that hostname instead of the IP.
     
  13. djsuperstore

    Joined:
    Feb 20, 2008
    Messages:
    25
    Likes Received:
    0
    Yes, thats a VMware network. I did install the software on a XP box and have had everything working fine today. Although it would ne nice to have it running on our server.

     

Share This Page