Hi Orlin,
Thanks for your reply. I already did this, but it does not work.
My primary nic has address 192.168.x.246, it has a gateway to 192.168.x.1 and access to the internet and lan.
My secondary nic has address 1.x.x.142, no gateway, but a static route has been set to the IP of the SIP-server of my provider. In the Settings, Network, STUN server, stun is disabled and the public ip to specify is set to the address of the secondary nic, it is also selected as Network card interface.
The primary VOIP Provider has its 'Contact' field IP set to specified IP 1.x.x.142. Calls along this provider work.
The secondary VOIP Provider has its 'Contact' field IP set to my pulic IP 78.x.x.x. Calls do not work. I am testing with iptel.org here.
To get a minimum of correct information in the request I need to change several parameters on the Outbound tab;
* Contact: Host Part : 78.x.x.x
* From: Host Part: 78.x.x.x
If I don't do this, all parameters in the call default to the address set on the STUN page.
Here is an extract from Wireshark after just setting up the VOIP Provider and setting the contact field to the external 78.x.x.x address.
Code:
No. Time Source Destination Protocol Info
118 20.053471 192.168.x.246 217.9.36.145 SIP/SDP Request: INVITE sip:[email protected]:5060, with session description
Frame 118: 981 bytes on wire (7848 bits), 981 bytes captured (7848 bits)
Ethernet II, Src: Giga-Byt_b8:0b:bd (1c:6f:65:b8:0b:bd), Dst: Netscree_92:fc:d0 (00:10:db:92:fc:d0)
Internet Protocol, Src: 192.168.x.246 (192.168.x.246), Dst: 217.9.36.145 (217.9.36.145)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol
Request-Line: INVITE sip:[email protected]:5060 SIP/2.0
Method: INVITE
Request-URI: sip:[email protected]:5060
[Resent Packet: False]
Message Header
Via: SIP/2.0/UDP 192.168.x.246:5060;branch=z9hG4bK-d8754z-981be82f2753bc26-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060>
Contact-URI: sip:[email protected]:5060
Contactt-URI User Part: xxxxx
Contact-URI Host Part: 1.x.x.142
Contact-URI Host Port: 5060
To: <sip:[email protected]:5060>
SIP to address: sip:[email protected]:5060
SIP to address User Part: 3246
SIP to address Host Part: iptel.org
SIP to address Host Port: 5060
From: "+323xxxxxx"<sip:[email protected]:5060>;tag=4600b668
SIP Display info: "+323xxxxxx"
SIP from address: sip:[email protected]:5060
SIP tag: 4600b668
Call-ID: OTZjZWQ4NDc1ZmNmODU2YWJhZWUyNWQ3ZTRkMWExNjM.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: 3CXPhoneSystem 10.0.22539.0
Content-Length: 274
Remote-Party-ID: "+323xxxxxx"<sip:[email protected]:5060>;party=calling
Message Body
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): 3cxPS 154300055552 400891576321 IN IP4 1.x.x.142
Session Name (s): 3cxPS Audio call
Connection Information (c): IN IP4 1.x.x.142
Time Description, active time (t): 0 0
Media Description, name and address (m): audio 9008 RTP/AVP 0 8 3 101
Connection Information (c): IN IP4 1.x.x.142
Media Attribute (a): rtpmap:0 PCMU/8000
Media Attribute (a): rtpmap:8 PCMA/8000
Media Attribute (a): rtpmap:3 GSM/8000
Media Attribute (a): rtpmap:101 telephone-event/8000
Media Attribute (a): sendrecv
Here is an extract from Wireshark after changing mentioned parameters.
Code:
No. Time Source Destination Protocol Info
174 16.178084 192.168.x.246 217.9.36.145 SIP/SDP Request: INVITE sip:[email protected]:5060, with session description
Frame 174: 986 bytes on wire (7888 bits), 986 bytes captured (7888 bits)
Ethernet II, Src: Giga-Byt_b8:0b:bd (1c:6f:65:b8:0b:bd), Dst: Netscree_92:fc:d0 (00:10:db:92:fc:d0)
Internet Protocol, Src: 192.168.x.246 (192.168.x.246), Dst: 217.9.36.145 (217.9.36.145)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol
Request-Line: INVITE sip:[email protected]:5060 SIP/2.0
Message Header
Via: SIP/2.0/UDP 192.168.x.246:5060;branch=z9hG4bK-d8754z-f92c7757da2d1100-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060>
Contact-URI: sip:[email protected]:5060
Contactt-URI User Part: xxxxxx
Contact-URI Host Part: 78.x.x.x
Contact-URI Host Port: 5060
To: <sip:[email protected]:5060>
SIP to address: sip:[email protected]:5060
SIP to address User Part: 3246
SIP to address Host Part: iptel.org
SIP to address Host Port: 5060
From: "+323xxxxxx"<sip:[email protected]:5060>;tag=79518028
SIP Display info: "+323xxxxxx"
SIP from address: sip:[email protected]:5060
SIP tag: 79518028
Call-ID: YTJhNjFhODJhYTQzNGE0NmY0YTI3YzdhNzE4Y2I0NDg.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: 3CXPhoneSystem 10.0.22539.0
Content-Length: 273
Remote-Party-ID: "+323xxxxxx"<sip:[email protected]:5060>;party=calling
[Expert Info (Note/Undecoded): Unrecognised SIP header (Remote-Party-ID)]
Message Body
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): 3cxPS 43318771712 137891938305 IN IP4 1.x.x.142
Owner Username: 3cxPS
Session ID: 43318771712
Session Version: 137891938305
Owner Network Type: IN
Owner Address Type: IP4
Owner Address: 1.x.x.142
Session Name (s): 3cxPS Audio call
Connection Information (c): IN IP4 1.x.x.142
Connection Network Type: IN
Connection Address Type: IP4
Connection Address: 1.x.x.142
Time Description, active time (t): 0 0
Media Description, name and address (m): audio 9004 RTP/AVP 0 8 3 101
Connection Information (c): IN IP4 1.x.x.142
Connection Network Type: IN
Connection Address Type: IP4
Connection Address: 1.x.x.142
Media Attribute (a): rtpmap:0 PCMU/8000
Media Attribute (a): rtpmap:8 PCMA/8000
Media Attribute (a): rtpmap:3 GSM/8000
Media Attribute (a): rtpmap:101 telephone-event/8000
Media Attribute (a): sendrecv
To test more, I switched the ip address in the Settings, Network, Stun to the normal external IP, but then calls over the original provider exhibit the same problem.
Herman