Hi,

could you please send SEMS log, config files and also pcap? (even privately).

I checked this (only with two private addresses), but it works for me:

sems.conf
=========
sip_ip=192.168.1.4
media_ip=192.168.1.4
sip_port=5060
rtp_low_port=10000
rtp_high_port=30000

additional_interfaces=intern

sip_ip_intern=192.168.1.100
sip_port_intern=5060
media_ip_intern=192.168.1.100
rtp_low_port_intern=30001
rtp_high_port_intern=60000

sbc.conf
========
profiles=int1,int2
active_profile=$M($Ri:$Rp=>dst_ipportmap)
regex_maps=dst_ipportmap

dst_ipportmap.conf
==================
192.168.1.4:5060=>int1
192.168.1.100:5060=>int2

int1.sbcprofile.conf
====================
next_hop_ip=127.0.0.1
next_hop_port=6000
append_headers="Profile: int1\r\n"

int2.sbcprofile.conf
====================
next_hop_ip=127.0.0.1
next_hop_port=6000
append_headers="Profile: int2\r\n"
outbound_interface=intern

I'm also getting these errors,
[#7ffd8b86b700/21645] [getOutboundIf, AmSipDialog.cpp:620] ERROR: Could not find a local interface for resolved local IP (local_tag='0B0868B6-4F3126A600055B84-8B96C700';local_ip='127.0.0.1') [#7ffd8b86b700/21645] [getOutboundIf, AmSipDialog.cpp:628] WARNING: Error while computing outbound interface: default interface will be used instead.

but as you can check in attached trace, it IPs and outgoing interfaces seems to be OK.

Thanks,
-Vlada

Dne 02/07/2012 01:17 PM, Max Mühlbronner napsal(a):
Hi,

I am trying to setup the SBC module on two public ips (one added via
sip_ip , and another via additional_interfaces in sems.conf, also added
as outbound interface in corresponding sbc.profile) but the 100 trying
reply from sems got the wrong ip in the contact header? I noticed debug
messages about computing outbound interfaces but it still makes no sense
for me because with the main ip (sip_ip setting in sems.conf) it seems
to be fine, while the other has the wrong contact (the ip from the first
interface..)?

WARNING: Error while computing outbound interface: default interface
will be used instead.


everything fine when sending to the main IP e.g. sip_ip setting :

U 2012/02/07 12:59:59.061226 109.21.11.11:5060 -> X.X.X.X:52104
SIP/2.0 100 Connecting.
Via: SIP/2.0/UDP
X.X.X.X:52104;branch=z9hG4bK-d8754z-3257571d8a525f56-1---d8754z-;rport=52104;received=X.X.X.X.
To:
"03055555"<sip:[email protected]>;tag=39754C38-4F31123F0000E437-5E72B700.
From: "49303333333"<sip:[email protected]>;tag=427a633b.
Call-ID: NzMzOTE5Nzk2ZTAzM2ZlZjdiMzBhMmE0NjEyNzcwMTA..
CSeq: 1 INVITE.
Server: SBC.
Contact: <sip:[email protected]:5060>.
Content-Length: 0.


Call to the additonal_interface/second ip, which has the ip of the first
interface as contact instead of the signaling ip which was used:

U 2012/02/07 13:04:37.983095 109.21.11.13:5060 -> X.X.X.X:41512
SIP/2.0 100 Connecting.
Via: SIP/2.0/UDP
X.X.X.X:41512;branch=z9hG4bK-d8754z-0360517a292fd161-1---d8754z-;rport=41512;received=X.X.X.X.
To:
"03055555"<sip:[email protected]>;tag=08E5B439-4F311355000EF558-5E125700.
From: "49303333333"<sip:[email protected]>;tag=7a1b2431.
Call-ID: ZTJhNzllMDI5MjJmNGViM2NlOWVhMTExZmQ3MWVjNmQ..
CSeq: 1 INVITE.
Server: SBC.
Contact: <sip:03055555@*109.21.11.11*:5060>.
Content-Length: 0.


Is there anything wrong about my setup? I tried all possible
combinations of additional ips / interfaces but i never got it to work
correctly when using two public IPs, or more detailed the
"additional_interfaces" ip never got the right IP in the contact header.
Maybe i am just doing it wrong?



Best Regards

Max M.


_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Attachment: test.pcap
Description: application/extension-pcap

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to