Author |
Message |
dstu Brekeke Talented
Joined: 06 Feb 2006 Posts: 72
|
Posted: Thu Dec 25, 2014 1:19 am Post subject: Incorrect Interface Used - RESOLVED |
|
|
1. Brekeke Product Name and Version:
Brekeke SIP Server , Version 3.3.8.1 Advanced
2. Java version:
1.6.0_32
3. OS type and the version:
Linux 3.2.0-70-generic
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:
This is my dial-plan:
Matching Patterns | $request = ^INVITE $addr = y.y.y.y To = sip:(9998001)@ From = sip:(.+)@ Contact = sip:(.+)@
| Deploy Patterns | $rtp = true To = sip:%1@10.170.8.100 From = sip:%2@10.170.8.250 Contact = sip:%3@10.170.8.250 &net.rtp.ifsrc.audio = 10.170.8.250
|
I have 3 interfaces installed on the server (and configured in the Brekeke):
Public: x.x.x.x
Admin: 10.170.0.250
SIP: 10.170.8.250
In the session, I see it ignores the required interface and sends the RTP through another interface:
--------------------------
[Session Details:]
From-URI sip:123456@y.y.y.y
From-UA server
From-IP y.y.y.y:5060 (UDP)
From-Interface x.x.x.x:5060
To-URI sip:9998001@10.170.8.100
To-IP 10.170.8.100 (UDP)
To-Interface 10.170.0.250:5060
Call-ID b3f9d338-aa00960a-13c4-50022-3f0c9-6149c40b-3f0c9
B2B-Mode off
DialPlan-Rules Rule01
Port-Listen 5060
Session-PlugIn InviteSession
Session-Status Inviting
Session-Timeout[sec] 10
Time-Inviting Thu Dec 25 21:00:39.941 CET 2014
Time-Latest-Packet Thu Dec 25 21:00:39.948 CET 2014
SIP-Packets-Total 1
rtp-relay on
rtp-srcdst
rtp-dstsrc
media audio
transport RTP/AVP
payload -
status active
listen-port 10000
send-port
packet-count 0
packet/sec 0
buffer size 260
rtpex plug-in RTPexJNI
--------------------------
Any idea why it uses the wrong interface? I tried not to include the contact & ifsrc in the dial-plan. Nothings matters to it. It insists on the wrong interface
If I remove the IP addresses of the interface in the configuration page and set the "Auto interface discovery" to "on", it only find the 10.170.0.250.
In the ifconfig, I the interfaces are named eth0 (10.170.0.250), eth1 (x.x.x.x) and eth2 (10.170.8.250).
Thanks for your help,
David
Last edited by dstu on Sat Dec 27, 2014 12:54 am; edited 1 time in total |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Fri Dec 26, 2014 11:26 am Post subject: |
|
|
Have you checked this wiki page?
http://wiki.brekeke.com/wiki/Bind-Brekeke-SIP-Server-to-one-IP-address
You will need to "bind" the interface to the SIP Server.
-----------------------------
net.bind.interface = 10.170.8.250
net.net1.interface = 10.170.8.250
net.net1.interface-restrict = 10.170.0.250
net.net2.interface-restrict = x.x.x.x (set eth1's IP!)
----------------------------- |
|
Back to top |
|
dstu Brekeke Talented
Joined: 06 Feb 2006 Posts: 72
|
Posted: Sat Dec 27, 2014 12:53 am Post subject: |
|
|
I wasn't sure if I could bind only one interface, considering I'm using both.
That ($ifdst) solved the problem for me:
Matching Patterns | $request = ^INVITE $addr = y.y.y.y To = sip:(9998001)@
| Deploy Patterns | $rtp = true
To = sip:%1@10.170.8.100
$ifdst = 10.170.8.250 |
|
|
Back to top |
|
|