Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to configure FreeSWITCH for callingSI


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
zolotov at altron.ua
Guest





PostPosted: Tue Sep 02, 2008 7:58 am    Post subject: [Freeswitch-users] How to configure FreeSWITCH for callingSI Reply with quote

On 1st host (192.168.2.107, it opos8, it 127.0.0.1) are carried out:
- SIPP UAC
- SIPP UAS
- FS

1. At first we do direct connect RTP UAC-> UAS and return relaying UAS-> UAC

[root@opos9 sipp.svn]# ./sipp -sn uac_pcap -m 1 opos9

[olej@opos9 sipp.svn]$ ./sipp -sn uas -rtp_echo

[root@opos9 OGG]# tcpdump -i3 -n host opos9
tcpdump: WARNING: Promiscuous mode not supported on the "any" device
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
11:24:58.171257 IP 127.0.0.1.sip-tls > 127.0.0.1.sip: SIP, length: 559
11:24:58.171514 IP 127.0.0.1.sip > 127.0.0.1.sip-tls: SIP, length: 301
11:24:58.171616 IP 127.0.0.1.sip > 127.0.0.1.sip-tls: SIP, length: 458
11:24:58.172038 IP 127.0.0.1.sip-tls > 127.0.0.1.sip: SIP, length: 351
11:24:58.172404 IP 127.0.0.1.6001 > 127.0.0.1.6000: UDP, length 252
11:24:58.172449 IP 127.0.0.1.6000 > 127.0.0.1.6001: UDP, length 252
11:24:58.204027 IP 127.0.0.1.6001 > 127.0.0.1.6000: UDP, length 252
11:24:58.204080 IP 127.0.0.1.6000 > 127.0.0.1.6001: UDP, length 252
....................
11:25:06.314426 IP 127.0.0.1.6001 > 127.0.0.1.6000: UDP, length 16
11:25:06.314465 IP 127.0.0.1.6001 > 127.0.0.1.6000: UDP, length 16
11:25:06.314477 IP 127.0.0.1.6001 > 127.0.0.1.6000: UDP, length 16
11:25:06.314767 IP 127.0.0.1.6000 > 127.0.0.1.6001: UDP, length 16
11:25:06.314793 IP 127.0.0.1.6000 > 127.0.0.1.6001: UDP, length 16
11:25:06.314804 IP 127.0.0.1.6000 > 127.0.0.1.6001: UDP, length 16
11:25:07.174327 IP 127.0.0.1.sip-tls > 127.0.0.1.sip: SIP, length: 351
11:25:07.174526 IP 127.0.0.1.sip > 127.0.0.1.sip-tls: SIP, length: 293

498 packets captured
1494 packets received by filter
0 packets dropped by kernel

- it's OK - RTP trafic run into 2 direction.

2. Now it would be desirable to include FreeSWITCH in stream rupture between UAC - UAS:

[olej@opos9 sipp.svn]$ ./sipp -sn uas -rtp_echo -p 5062 -mp 6004
- RTP port 6004

[root@opos9 sipp.svn]# ./sipp -sn uac_pcap -s 20081 -m 1 -mp 6008 192.168.2.107:5070
- RTP port 6008

[root@opos9 OGG]# tcpdump -i3 -n dst host 192.168.2.107 or 127.0.0.1 and src host 192.168.2.107 or 127.0.0.1
tcpdump: WARNING: Promiscuous mode not supported on the "any" device
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
15:27:06.474765 IP 192.168.2.107.sip-tls > 192.168.2.107.5070: UDP, length 563
15:27:06.475596 IP 192.168.2.107.5070 > 192.168.2.107.sip-tls: UDP, length 310
15:27:06.487313 IP 192.168.2.107.5070 > 127.0.0.1.5062: UDP, length 921
15:27:06.487707 IP 192.168.2.107.5062 > 192.168.2.107.5070: UDP, length 322
15:27:06.487859 IP 192.168.2.107.5062 > 192.168.2.107.5070: UDP, length 479
15:27:06.489679 IP 192.168.2.107.5070 > 127.0.0.1.5062: UDP, length 355
15:27:06.491973 IP 192.168.2.107.5070 > 192.168.2.107.sip-tls: UDP, length 590
15:27:06.493873 IP 192.168.2.107.5070 > 192.168.2.107.sip-tls: UDP, length 822
15:27:06.496382 IP 192.168.2.107.sip-tls > 192.168.2.107.5070: UDP, length 354
15:27:06.497854 IP 127.0.0.1.6008 > 127.0.0.1.0: UDP, length 252
15:27:06.497898 IP 127.0.0.1 > 127.0.0.1: ICMP 127.0.0.1 udp port 0 unreachable, length 288
15:27:06.529517 IP 127.0.0.1.6008 > 127.0.0.1.0: UDP, length 252
15:27:06.529558 IP 127.0.0.1 > 127.0.0.1: ICMP 127.0.0.1 udp port 0 unreachable, length 288
15:27:06.559627 IP 127.0.0.1.6008 > 127.0.0.1.0: UDP, length 252
....
15:27:14.640995 IP 127.0.0.1.6008 > 127.0.0.1.0: UDP, length 16
15:27:14.641035 IP 127.0.0.1 > 127.0.0.1: ICMP 127.0.0.1 udp port 0 unreachable, length 52
15:27:14.641061 IP 127.0.0.1.6008 > 127.0.0.1.0: UDP, length 16
15:27:14.641071 IP 127.0.0.1 > 127.0.0.1: ICMP 127.0.0.1 udp port 0 unreachable, length 52
15:27:14.641086 IP 127.0.0.1.6008 > 127.0.0.1.0: UDP, length 16
15:27:14.641095 IP 127.0.0.1 > 127.0.0.1: ICMP 127.0.0.1 udp port 0 unreachable, length 52
15:27:15.501954 IP 192.168.2.107.sip-tls > 192.168.2.107.5070: UDP, length 354
15:27:15.502513 IP 192.168.2.107.5070 > 192.168.2.107.sip-tls: UDP, length 485
15:27:15.511937 IP 192.168.2.107.5070 > 127.0.0.1.5062: UDP, length 615
15:27:15.513052 IP 192.168.2.107.5062 > 192.168.2.107.5070: UDP, length 314

505 packets captured
1516 packets received by filter
0 packets dropped by kernel

<extension name="20081">
<condition field="destination_number" expression="^20081$" >
<action application="set" data="bypass_media=true" />
<action application="bridge" data="sofia/nat/20081@127.0.0.1:5062 ([email]sofia/nat/20081@127.0.0.1:5062[/email])" />
<action application="answer" />
<action application="sleep" data="1000" />
</condition>
</extension>

It is well visible that SIP-stream through FreeSWITCH is well transmit between UAs.
But RTP-stream goes to FreeSWITCH, but it does not reach.

What is it?
We do something not so? Or it is misoperation of FreeSWITCH?
This is a prtocol from FreeSWITCH console:

2008-09-02 15:27:06 [INFO] mod_dialplan_xml.c:228 dialplan_hunt() Processing sipp->20081 in context public
2008-09-02 15:27:06 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel sofia/nat/20081@127.0.0.1:5062 ([email]sofia/nat/20081@127.0.0.1:5062[/email]) [b808d845-f4e6-41e1-82d8-1251c0aec269]
2008-09-02 15:27:06 [NOTICE] sofia.c:2195 sofia_handle_sip_i_state() Ring-Ready sofia/nat/20081@127.0.0.1:5062 ([email]sofia/nat/20081@127.0.0.1:5062[/email])!
2008-09-02 15:27:06 [NOTICE] mod_sofia.c:1071 sofia_receive_message() Ring-Ready sofia/nat/sipp@127.0.0.1:5061 ([email]sofia/nat/sipp@127.0.0.1:5061[/email])!
2008-09-02 15:27:06 [NOTICE] sofia.c:2484 sofia_handle_sip_i_state() Channel [sofia/nat/20081@127.0.0.1:5062] has been answered
2008-09-02 15:27:06 [NOTICE] sofia.c:2497 sofia_handle_sip_i_state() Channel [sofia/nat/sipp@127.0.0.1:5061] has been answered
2008-09-02 15:27:15 [NOTICE] sofia.c:2573 sofia_handle_sip_i_state() Hangup sofia/nat/sipp@127.0.0.1:5061 ([email]sofia/nat/sipp@127.0.0.1:5061[/email]) [CS_HIBERNATE] [NORMAL_CLEARING]
2008-09-02 15:27:15 [NOTICE] switch_ivr_bridge.c:594 signal_bridge_on_hangup() Hangup sofia/nat/20081@127.0.0.1:5062 ([email]sofia/nat/20081@127.0.0.1:5062[/email]) [CS_HIBERNATE] [NORMAL_CLEARING]
2008-09-02 15:27:15 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 3 (sofia/nat/sipp@127.0.0.1:5061 ([email]sofia/nat/sipp@127.0.0.1:5061[/email])) Ended
2008-09-02 15:27:15 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/nat/sipp@127.0.0.1:5061 ([email]sofia/nat/sipp@127.0.0.1:5061[/email]) [CS_HANGUP]
2008-09-02 15:27:15 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 4 (sofia/nat/20081@127.0.0.1:5062 ([email]sofia/nat/20081@127.0.0.1:5062[/email])) Ended
2008-09-02 15:27:15 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/nat/20081@127.0.0.1:5062 ([email]sofia/nat/20081@127.0.0.1:5062[/email]) [CS_HANGUP]

- FreeSWITCH "thinks", that all is fine? Sad
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services