[Freeswitch-users] FS can't direct call to SBC
Vadim Gribanovsky
vgribanovsky at rnd.stcnet.ru
Thu Jan 14 08:58:14 PST 2010
Hi all!
Let me ask FS experts and users to help to resolve following
problem:
/////////////////////////////////////////////////////////////////////////////////////////////////
1.VOIP test environment:
=>local (10.10.10.235/24) FS(v1.0.4) installation +
=>local IP-Phone (GXP2020) +
=>SBC (acts as stateless proxy) provides secure access (TLS
+SRTP) to FS
for +
=>external NATed IP-PHONE (PJSIPua)
as depicted below:
PHONE(10.10.10.31) <-udp-> FS(10.10.10.235) <-tcp-> (Local
10.10.10.238)SBC(Public P.U.B.LS)<-tls-> INTERNET<-tls->
NAT(Public
P.U.B.LN) <-tls-> PHONE (10.10.10.21)
2.Problem:
=> local IP-Phone get registration to FS, -OK!
=> external NATed IP-PHONE get registration to FS via SBC, -OK!
=> FS try to send NOTIFY request to external NATed IP-PHONE
using
[sip_contact_host:port] record instead
[sip_received_ip:port](SBC) -
FAIL!
=> external NATed IP-PHONE calls local IP-Phone - OK!
=> local IP-Phone couldn't call external NATed IP-PHONE - FS
redirect to
voicemail - FAIL!
3. Logs:
=>FS CLI
API CALL [sofia(status)] output:
Name Type
Data State
=================================================================================================
vfsp_profile profile
sip:mod_sofia at 10.10.10.235:5090 RUNNING (0)
vfsp_gw gateway
sip:FS_VFSP at 10.10.10.238 NOREG
internal profile
sip:mod_sofia at 10.10.10.235:5060 RUNNING (0)
internal-ipv6 profile
sip:mod_sofia@[::1]:5060 RUNNING (0)
10.10.10.235 alias
internal ALIASED
=================================================================================================
3 profiles 1 alias
API CALL [sofia(status profile internal)] output:
=================================================================================================
Name internal
Domain Name N/A
DBName sofia_reg_internal
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_from
RTP-IP 10.10.10.235
Ext-RTP-IP 10.10.10.235
SIP-IP 10.10.10.235
Ext-SIP-IP 10.10.10.235
URL sip:mod_sofia at 10.10.10.235:5060
BIND-URL sip:mod_sofia at 10.10.10.235:5060
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS
G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 3
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
Registrations:
=================================================================================================
Call-ID: db639b76d2884388 at 10.10.10.31
User: 1010 at 10.10.10.235
Contact: "user"
<sip:1010 at 10.10.10.31:5060;transport=udp;user=phone>
Agent: Grandstream GXP2020 1.2.1.4
Status: Registered(UDP)(unknown) EXP(2010-01-14
16:00:09)
Host: aq
IP: 10.10.10.31
Port: 5060
Auth-User: 1010
Auth-Realm: 10.10.10.235
=================================================================================================
API CALL [sofia(status profile vfsp_profile)] output:
=================================================================================================
Name vfsp_profile
Domain Name N/A
DBName sofia_reg_vfsp_profile
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_to
RTP-IP 10.10.10.235
Ext-RTP-IP stun:stun.freeswitch.org
SIP-IP 10.10.10.235
Ext-SIP-IP P.U.B.L
URL sip:mod_sofia at 10.10.10.235:5090
BIND-URL sip:mod_sofia at 10.10.10.235:5090
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT true
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 0
FAILED-CALLS-OUT 0
Registrations:
=================================================================================================
Call-ID: 6197eb4f-72fa-428f-8c0e-5c5551d185e2
User: 1007 at 10.10.10.235
Contact: "user" <sip:1007 at P.U.B.LN:43459;transport=tcp>
Agent: PJSUA v1.0.3/i686-pc-linux-gnu
Status: Registered(TCP)(unknown) EXP(2010-01-14
16:04:46)
Host: aq
IP: 10.10.10.238
Port: 38782
Auth-User: 1007
Auth-Realm: 10.10.10.235
=================================================================================================
=> sniffer
pkt1. SBC -> FS
REGISTER sip:10.10.10.235;transport=tcp SIP/2.0
Record-Route: <sip:10.10.10.238:5060;transport=tcp;lr>
Via: SIP/2.0/tcp
10.10.10.238:36707;rport;branch=z9hG4bKPj66cc4b809a6bb1510af258991c1f0587
Via: SIP/2.0/tcp
10.10.10.21:32780;rport=43459;received=P.U.B.L;branch=z9hG4bKPj71ce8307-a505-4477-9c47-348cb947b1be
Max-Forwards: 69
From:
<sip:1007 at 10.10.10.235>;tag=a702b4fb-d565-4627-9cff-5fb6bfed2922
To: <sip:1007 at 10.10.10.235>
Call-ID: b618fe07-a1ef-4eee-926c-ff8e8f3c9096
CSeq: 49600 REGISTER
User-Agent: PJSUA v1.0.3/i686-pc-linux-gnu
Contact: <sip:1007 at P.U.B.LN:43459;transport=tcp>
Expires: 300
pkt2. FS -> SBC
SIP/2.0 200 OK
Via: SIP/2.0/TCP
10.10.10.238:36707;rport=36707;branch=z9hG4bKPj66cc4b809a6bb1510af258991c1f0587
Via: SIP/2.0/TCP
10.10.10.21:32780;rport=43459;received=P.U.B.LN;branch=z9hG4bKPj71ce8307-a505-4477-9c47-348cb947b1be
From:
<sip:1007 at 10.10.10.235>;tag=a702b4fb-d565-4627-9cff-5fb6bfed2922
To: <sip:1007 at 10.10.10.235>;tag=Brpemg1NcteDc
Call-ID: b618fe07-a1ef-4eee-926c-ff8e8f3c9096
CSeq: 49600 REGISTER
Contact: <sip:1007 at P.U.B.LN:43459;transport=tcp>;expires=300
Date: Thu, 14 Jan 2010 13:15:37 GMT
User-Agent: FreeSWITCH-mod_sofia/1.0.4-exported
pkt3. FS -> external NATed IP-PHONE (trying to send NOTIFY via
default
gateway instead SBC!!!)
Internet Protocol, Src: 10.10.10.235 (10.10.10.235), Dst:
P.U.B.LN
(P.U.B.LN)
Transmission Control Protocol, Src Port: 52304 (52304), Dst
Port: 43459
(43459), Seq: 0, Len: 0
Flags: 0x02 (SYN)
4. default gateway -> FS
Internet Protocol, Src: P.U.B.LN (P.U.B.LN), Dst: 10.10.10.235
(10.10.10.235)
Transmission Control Protocol, Src Port: 43459 (43459), Dst
Port: 52304
(52304), Seq: 1, Ack: 1, Len: 0
Flags: 0x14 (RST, ACK)
///////////////////////////////////////////////////////////////////////////////////////////////////////////
The same happened when i use default FS configuration (with
external profile).
Can somebody push me to the right way?
Thanks in advance,
Vadim
More information about the FreeSWITCH-users
mailing list