freeswitch@34WC1I9C1VS1OGP> json {"command": "callcenter_config", "format": "pretty", "data": {"arguments":"queue list"}}
{
"command": "callcenter_config",
"format": "pretty",
"data": {
"arguments": "queue list"
},
"status": "success",
"response": [{
"name": "support@default",
"strategy": "ring-all",
"moh_sound": "local_stream://moh",
"time_base_score": "system",
"tier_rules_apply": "false",
"tier_rule_wait_second": 300,
"tier_rule_wait_multiply_level": "true",
"tier_rule_no_agent_no_wait": "false",
"discard_abandoned_after": 60,
"abandoned_resume_allowed": "false",
"max_wait_time": 0,
"max_wait_time_with_no_agent": 0,
"max_wait_time_with_no_agent_time_reached": 5,
"record_template": "",
"skip_agents_with_external_calls": "true",
"agent_no_answer_status": "On Break"
}]
}
freeswitch@34WC1I9C1VS1OGP> json {"command": "callcenter_config", "format": "pretty", "data": {"arguments":"agent list"}}
{
"command": "callcenter_config",
"format": "pretty",
"data": {
"arguments": "agent list"
},
"status": "success",
"response": [{
"name": "[email protected]",
"system": "single_box",
"uuid": "",
"type": "callback",
"contact": "[leg_timeout=10]user/1000",
"status": "Available",
"state": "Waiting",
"max_no_answer": "3",
"wrap_up_time": "10",
"reject_delay_time": "10",
"busy_delay_time": "60",
"no_answer_delay_time": "0",
"last_bridge_start": "1561009180",
"last_bridge_end": "1561009183",
"last_offered_call": "1561010234",
"last_status_change": "1561001205",
"no_answer_count": "0",
"calls_answered": "11",
"talk_time": "26",
"ready_time": "0",
"external_calls_count": "0"
}, {
"name": "[email protected]",
"system": "single_box",
"uuid": "21777664-b1a9-4850-8cdf-b6ec3cff646c",
"type": "uuid-standby",
"contact": "[leg_timeout=10]user/1001",
"status": "Available (On Demand)",
"state": "Idle",
"max_no_answer": "3",
"wrap_up_time": "10",
"reject_delay_time": "10",
"busy_delay_time": "60",
"no_answer_delay_time": "0",
"last_bridge_start": "1561010234",
"last_bridge_end": "1561010236",
"last_offered_call": "1561010234",
"last_status_change": "1561010230",
"no_answer_count": "0",
"calls_answered": "6",
"talk_time": "79",
"ready_time": "0",
"external_calls_count": "0"
}]
}
freeswitch@====> global_setvar grp_pickup=true
+OK
freeswitch@====>
freeswitch@====> global_getvar grp_pickup
true
freeswitch@====> global_getvar
.............
grp_pickup=true
default_extern_pickup=true
default/extern_pickup=true
aaaaaaaaaaaaaaaaa=2
freeswitch@======>
freeswitch@34WC1I9C1VS1OGP> expand hash_dump all ${domain}-last
D/192.168.4.205-last_dial_ext_global/06169832-d893-435b-9c2c-b6cc55028974
D/192.168.4.205-last_dial_global/5c7e8e51-d3b0-463f-826f-9f843c042aad
D/192.168.4.205-last_dial_1001/87890
D/192.168.4.205-last_dial_techsupport/06169832-d893-435b-9c2c-b6cc55028974
D/192.168.4.205-last_dial_ext_1002/06169832-d893-435b-9c2c-b6cc55028974
D/192.168.4.205-last_dial_1000/1002
D/192.168.4.205-last_dial_ext_techsupport/06169832-d893-435b-9c2c-b6cc55028974
freeswitch@====> hash_dump db 192.168.4.211-last_dial
D/192.168.4.211-last_dial_ext_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_1002/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_1000/1002
freeswitch@====>
freeswitch@====>
freeswitch@====> hash_dump db 192.168.4.211-last_dial_ext
D/192.168.4.211-last_dial_ext_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_1002/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
freeswitch@ebang> hash_dump db
D/192.168.4.211-last_dial_ext_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-spymap_1000/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_1002/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-call_return_1002/1000
D/192.168.4.211-last_dial_1000/1002
freeswitch@ebang>
freeswitch@ebang>
freeswitch@ebang> hash_dump all
D/192.168.4.211-last_dial_ext_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_techsupport/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-spymap_1000/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_global/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-last_dial_ext_1002/5256d0e3-af9a-4bb8-9c5d-1200d2e6dc31
D/192.168.4.211-call_return_1002/1000
D/192.168.4.211-last_dial_1000/1002
inline dialplan,用于在命令中需要同时执行多个dialplan application的情况
originate sofia/gateway/my_gw/[email protected] 'set:myvar=myvalue,info:,playback:foo.wav' inline
freeswitch@34WC1I9C1VS1OGP> hash select/192.168.4.205-spymap/1000
801d79c1-6686-4aca-bec2-27679085e4b6
freeswitch@34WC1I9C1VS1OGP> hash select/192.168.4.205-spymap/1002
2c7be315-177f-4e5f-9051-3524c5e34af2
用户1001监听1000发起的呼叫
originate user/1001 &eavesdrop(${hash(select/${domain_name}-spymap/1000)})
originate user/1001 'queue_dtmf:w2@500,eavesdrop:a28739d0-00f0-4a59-8c82-7a5a74ab6861' inline
指定session的UUID
bgapi originate {origination_uuid="d4f6c64a-a792-4124-a69d-a7bf2f75da6f"}user/1001 &bridge(user/1002)
freeswitch@34WC1I9C1VS1OGP> sofia_dig --udp conference.freeswitch.org
Preference Weight Transport Port Address
================================================================================
1 0.000 udp 5060 190.102.98.168
freeswitch@34WC1I9C1VS1OGP> regex 61555555555 | ^61([0-9]{9})$ | 0%1
0555555555
xml_locate
xml_locate root: 返回FreeSWITCH使用的所有XML
xml_locate : 返回指定的XML
xml_locate directory
xml_locate configuration
xml_locate dialplan
xml_locate phrases
用法: xml_locate [root | | ]
示例: xml_locate directory domain name example.com
xml_wrap
使用xml来包装API命令
用法: xml_wrap
originate {absolute_codec_string=PCMU}user/1000 3000
强制指定codec
freeswitch 显示主叫名称和主叫号码
1.指定主叫号码
origination_caller_id_number 参数来指定显示的主叫号码
2.指定主叫名称
origination_caller_id_name 参数来指定显示的主叫名称
例如:使用ESL 呼叫1000分机的时候,需要在1000分机显示来电号码为888888和名称为test:
originate {originate_timeout=30,origination_caller_id_number=888888,origination_caller_id_name=test}sofia/internal/[email protected] test
freeswitch 中有2个参数限制系统的最大呼叫量,以防止资源耗尽。
max_session控制最大并发数。默认值1000;sps控制最大每秒呼叫量,默认值30
命令临时生效:
fsctl max_sessions 5000
fsctl sps 100
永久生效:
switch.xml文件中
max-sessions
sessions-per-second
SIP to make phone reboot or resync
http://freeswitch-users.2379917.n2.nabble.com/SIP-to-make-phone-reboot-or-resync-td7581222.html
sofia profile check_sync [call_id] // no call_id means all
sofia profile flush_inbound_reg [call_id] [reboot]
freeswitch@fs-COM-BT> originate sofia/internal/1001%192.168.4.211 &echo()
-----------------------------------------------------------------------指域
freeswitch@fs-COM-BT> originate sofia/internal/[email protected][:5060] &echo()
-----------------------------------------------------------------------指主机(如果不带端口,默认为5060)
freeswitch@fs-COM-BT> sofia loglevel all
[ 0] [ 1] [ 2] [ 3]
[ 4] [ 5] [ 6] [ 7]
[ 8] [ 9]
freeswitch@fs-COM-BT> sofia loglevel all 0
Sofia log level for component [all] has been set to [0]
sofia loglevel设置,查看协议栈的log
freeswitch@fs-COM-BT> console loglevel debug
freeswitch的log设置
sofia profile internal siptrace on
查看SIP消息
freeswitch@fs-COM-BT> sofia xmlstatus profile internal
internal
N/A
false
sofia_reg_internal
XML
default
auto_from
192.168.4.211
192.168.4.211
sip:[email protected]:5060
sip:[email protected]:5060;transport=udp,tcp
local_stream://moh
N/A
PCMA,PCMU,VP8
PCMA,PCMU,VP8
101
none
13
0
2000
false
false
false
false
false
4
2
0
0
4
freeswitch@fs-COM-BT> sofia status profile internal reg
Registrations:
=================================================================================================
Call-ID: PKcMBzp6yhIZQG-du1TsYkW1MPmX6L5V
User: [email protected]
Contact: ""
Agent: Ebang
Status: Registered(UDP)(unknown) EXP(2019-03-30 19:48:09) EXPSECS(1242)
Ping-Status: Reachable
Ping-Time: 0.00
Host: fs-COM-BT
IP: 192.168.4.213
Port: 5060
Auth-User: unknown
Auth-Realm: 192.168.4.211
MWI-Account: [email protected]
freeswitch@fs-COM-BT> sofia status profile internal
=================================================================================================
Name internal
Domain Name N/A
Auto-NAT false
DBName sofia_reg_internal
Pres Hosts
Dialplan XML
Context default
Challenge Realm auto_from
RTP-IP 192.168.4.211
SIP-IP 192.168.4.211
URL sip:[email protected]:5060
BIND-URL sip:[email protected]:5060;transport=udp,tcp
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN PCMA,PCMU,VP8
CODECS OUT PCMA,PCMU,VP8
TEL-EVENT 101
DTMF-MODE none
CNG 13
SESSION-TO 0
MAX-DIALOG 2000
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
ZRTP-PASSTHRU false
AGGRESSIVENAT false
CALLS-IN 4
FAILED-CALLS-IN 0
CALLS-OUT 2
FAILED-CALLS-OUT 0
REGISTRATIONS 4
sofia global standby off
sofia global standby on
freeswitch@fs-COM-BT> show
[ aliases] [ api] [ application] [ bridged_calls]
[ calls] [ channels] [ chat] [ codec]
[ complete] [detailed_bridged_calls] [ detailed_calls] [ dialplan]
[ endpoint] [ file] [ interfaces] [ interface_types]
[ management] [ modules] [ nat_map] [ registrations]
[ say] [ status] [ tasks] [ timer]
freeswitch@fs-COM-BT> show endpoint
type,name,ikey
endpoint,error,mod_dptools
endpoint,group,mod_dptools
endpoint,loopback,mod_loopback
endpoint,modem,mod_spandsp
endpoint,null,mod_loopback
endpoint,pickup,mod_dptools
endpoint,rtp,mod_sofia
endpoint,sofia,mod_sofia
endpoint,user,mod_dptools
9 total.
freeswitch@fs-COM-BT> sched_api 5 g1 status&
freeswitch@fs-COM-BT> sched_del g1
+OK Deleted: 1
bgapi originate {origination_caller_id_number=1111,origination_caller_id_name=aaaa}sofia/external/[email protected] &playback(conference/8000/conf-entry_sound.wav)
bgapi originate sofia/external/[email protected] &park()
192.168.4.211是当前freeswitch,1000并没有在external上注册,现在通过external进行呼叫,进行reverse-auth-lookup,说明要求对发起方进行鉴权....
此时需要在acl.xml中设置
freeswitch@fs-COM-BT> bgapi originate sofia/external/[email protected] &park()
{
user = 1000
cfunction = sofia_reg_handle_sip_r_challenge
key_name = name
key_value = 192.168.4.211
tag_name = domain
section = directory
key = id
action = reverse-auth-lookup
script_dir = /mnt/fsvoip/src/fsapp/
domain = 192.168.4.211
ldsets = 1
}
freeswitch@fs-COM-BT> group insert:[email protected]:[sip_cid_type=none]sofia/gateway/sipprovider/01234555678
+OK
freeswitch@fs-COM-BT>
# sqlite3 ~freeswitch/db/call_limit.db
sqlite> .headers ON
sqlite> select * from group_data;
hostname|groupname|url
voip|[email protected]|[sip_cid_type=none]sofia/gateway/sipprovider/01234555678
voip|[email protected]|sofia/internal/sip:[email protected]:2048;line=abcde
sqlite> delete from group_data where groupname = '[email protected]';
root@fs-COM-BT:/usr/local/freeswitch/bin# ./fs_cli -H 127.0.0.1 -P 8021
originate {return_ring_ready=true}sofia/internal/[email protected] &socket(127.0.0.1:8082 async full)
freeswitch@fs-COM-BT> eval aaaa-${use_profile}@113 ddddd-${internal_auth_calls}
aaaa-external@113 ddddd-true
originate {sip_gethostbyname=true}sofia/internal/[email protected] @echo()
originate sofia/internal/[email protected] @echo()
originate sofia/internal/1000%internal @echo()
originate {bypass_media=false}sofia/internal/[email protected] &bridge(pickup/11)
originate {bypass_media=false}sofia/internal/[email protected] &bridge(error/UNALLOCATED_NUMBER)
freeswitch@fs-COM-BT> user_data 1001 var callfwd_busy
true
freeswitch@fs-COM-BT> list_users domain default
2018-12-13 20:28:20.915790 [NOTICE] switch_cpp.cpp:1442 [utils] {
2018-12-13 20:28:20.915790 [NOTICE] switch_cpp.cpp:1442 [utils] section = directory
2018-12-13 20:28:20.915790 [NOTICE] switch_cpp.cpp:1442 [utils] tag_name = domain
2018-12-13 20:28:20.915790 [NOTICE] switch_cpp.cpp:1442 [utils] key_name = name
2018-12-13 20:28:20.915790 [NOTICE] switch_cpp.cpp:1442 [utils] key_value = default
2018-12-13 20:28:20.915790 [NOTICE] switch_cpp.cpp:1442 [utils] }
2018-12-13 20:28:20.915790 [ERR] switch_cpp.cpp:1442 [xmlrequest] params is nil..........................
userid|context|domain|group|contact|callgroup|effective_caller_id_name|effective_caller_id_number
+OK
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> list_users domain 192.168.4.246
2018-12-13 20:29:30.935800 [NOTICE] switch_cpp.cpp:1442 [utils] {
2018-12-13 20:29:30.935800 [NOTICE] switch_cpp.cpp:1442 [utils] tag_name = domain
2018-12-13 20:29:30.935800 [NOTICE] switch_cpp.cpp:1442 [utils] key_name = name
2018-12-13 20:29:30.935800 [NOTICE] switch_cpp.cpp:1442 [utils] key_value = 192.168.4.246
2018-12-13 20:29:30.935800 [NOTICE] switch_cpp.cpp:1442 [utils] section = directory
2018-12-13 20:29:30.935800 [NOTICE] switch_cpp.cpp:1442 [utils] }
2018-12-13 20:29:30.935800 [ERR] switch_cpp.cpp:1442 [xmlrequest] params is nil..........................
userid|context|domain|group|contact|callgroup|effective_caller_id_name|effective_caller_id_number
1000|default|192.168.4.246|default|sofia/internal/sip:[email protected]:5060;transport=udp|techsupport|Extension 1000|1000
1001|default|192.168.4.246|default|sofia/internal/sip:[email protected]:5060;transport=udp|techsupport|Extension 1001|1001
1002|default|192.168.4.246|default|error/user_not_registered|techsupport|Extension 1002|1002
1003|default|192.168.4.246|default|error/user_not_registered|techsupport|Extension 1003|1003
freeswitch@fs-COM-BT> fsctl shutdown
[ asap] [ cancel] [ elegant] [ now]
[ reincarnate] [ restart]
freeswitch@fs-COM-BT> fsctl shutdown
freeswitch@fs-COM-BT> sofia_presence_data list */1000
status|rpid|user_agent|network_ip|network_port
unknown|unknown|Ebang|192.168.4.205|5060
+OK
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> sofia profile internal siptrace off
Disabled sip debugging on internal
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> sofia profile external rescan
Reload XML [Success]
+OK scan complete
2018-12-10 00:26:26.009111 [INFO] mod_enum.c:880 ENUM Reloaded
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 debug [0]
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 sip-trace [no]
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 sip-capture [no]
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 rfc2833-pt [101]
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 sip-port [5080]
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 dialplan [XML]
freeswitch@fs-COM-BT>
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 context [public]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 dtmf-duration [2000]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 inbound-codec-prefs [PCMA,PCMU,VP8]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 outbound-codec-prefs [PCMA,PCMU,VP8]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 hold-music [local_stream://moh]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 rtp-timer-name [soft]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 local-network-acl [localnet.auto]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 manage-presence [false]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 inbound-codec-negotiation [generous]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 nonce-ttl [60]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 auth-calls [false]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 inbound-late-negotiation [true]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 inbound-zrtp-passthru [true]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 rtp-ip [192.168.4.203]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 sip-ip [192.168.4.203]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 ext-rtp-ip [auto-nat]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 ext-sip-ip [auto-nat]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 rtp-timeout-sec [300]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 rtp-hold-timeout-sec [1800]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls [false]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-only [false]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-bind-params [transport=tls]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-sip-port [5081]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-passphrase []
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-verify-date [true]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-verify-policy [none]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-verify-depth [2]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-verify-in-subjects []
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 tls-version [tlsv1,tlsv1.1,tlsv1.2]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 user-agent-string [eb-sz]
2018-12-10 00:26:26.009111 [DEBUG] sofia.c:4637 username [EB]
2018-12-10 00:26:26.009111 [INFO] sofia.c:5987 Setting MAX Auth Validity to 0 Attempts
2018-12-10 00:26:26.009111 [WARNING] sofia.c:3744 Ignoring duplicate gateway 'gw1.ebang.com'
2018-12-10 00:26:26.009111 [WARNING] sofia.c:3744 Ignoring duplicate gateway 'example.com'
2018-12-10 00:26:26.009111 [INFO] switch_time.c:1423 Timezone reloaded 1750 definitions
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> user_data [email protected] var callfwd_busy
true
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> eval ${domain}
192.168.4.201
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> list_users group default
userid|context|domain|group|contact|callgroup|effective_caller_id_name|effective_caller_id_number
1000|default|192.168.4.201|default|sofia/internal/sip:[email protected]:5060;transport=udp|techsupport|Extension 1000|1000
1001|default|192.168.4.201|default|sofia/internal/sip:[email protected]:5060;transport=udp|techsupport|Extension 1001|1001
1002|default|192.168.4.201|default|error/user_not_registered|techsupport|Extension 1002|1002
1003|default|192.168.4.201|default|error/user_not_registered|techsupport|Extension 1003|1003
+OK
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> list_users group default user 1000
userid|context|domain|group|contact|callgroup|effective_caller_id_name|effective_caller_id_number
1000|default|192.168.4.201|default|sofia/internal/sip:[email protected]:5060;transport=udp|techsupport|Extension 1000|1000
+OK
freeswitch@fs-COM-BT> freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> user_data 1000 param password
1234
freeswitch@fs-COM-BT> user_data 1000 param password
1234
freeswitch@fs-COM-BT> user_data 1000 param password
1234
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> user_data 1000 attr id
1000
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> user_data 1000 var accountcode
1000
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> host_lookup www.sina.com.cn
202.102.94.124
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> /filter Unique-ID 111111111111
freeswitch@fs-COM-BT> originate user/1001 &echo()
freeswitch@fs-COM-BT> originate user/1001,user/1000 &park()
freeswitch@fs-COM-BT> originate user/1001 1000
如下配置影响上面命令是否成功:如下配置有可能导致单通
freeswitch@fs-COM-BT> /event json all
+OK event listener enabled json
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> INCOMING DATA [text/event-json]
{"Event-Name":"HEARTBEAT","Core-UUID":"1d2edc2a-f609-11e8-abbb-597d9ec9b344","FreeSWITCH-Hostname":"fs-COM-BT","FreeSWITCH-Switchname":"fs-COM-BT","FreeSWITCH-IPv4":"192.168.4.201","FreeSWITCH-IPv6":"::1","Event-Date-Local":"2018-12-02 20:12:43","Event-Date-GMT":"Mon, 03 Dec 2018 01:12:43 GMT","Event-Date-Timestamp":"1543799563209284","Event-Calling-File":"switch_core.c","Event-Calling-Function":"send_heartbeat","Event-Calling-Line-Number":"75","Event-Sequence":"15056","Event-Info":"System Ready","Up-Time":"0 years, 0 days, 17 hours, 6 minutes, 39 seconds, 267 milliseconds, 51 microseconds","FreeSWITCH-Version":"1.9.0+git~20181030T151754Z~50032af938~64bit","Uptime-msec":"61599267","Session-Count":"0","Max-Sessions":"1000","Session-Per-Sec":"30","Session-Per-Sec-Last":"0","Session-Per-Sec-Max":"0","Session-Per-Sec-FiveMin":"0","Session-Since-Startup":"0","Session-Peak-Max":"0","Session-Peak-FiveMin":"0","Idle-CPU":"98.100000"}
2018-12-02 20:10:14.389146 [NOTICE] sofia_reg.c:448 Registering gw1.ebang.com
freeswitch@fs-COM-BT> /event plain all
+OK event listener enabled plain
2018-12-02 20:10:17.389504 [ERR] sofia_reg.c:2456 gw1.ebang.com Failed Registration with status Service Unavailable [503]. failure #1807
2018-12-02 20:10:17.389504 [WARNING] sofia_reg.c:505 gw1.ebang.com Failed Registration [503], setting retry to 30 seconds.
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> /noevents
+OK no longer listening for events
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> hash_dump
Usage: all|limit|db []
freeswitch@fs-COM-BT> hash_dump all
D/192.168.4.201-spymap_1000/eda68fae-f3b8-11e8-98db-3b1c2d3b37e8
D/abc_aaaaaaaaa/bbbbbbbbbbbbb
D/192.168.4.201-spymap_1001/fab3b5cc-f44a-11e8-991f-3b1c2d3b37e8
D/192.168.4.201-last_dial_1001/7010
D/192.168.4.201-last_dial_global/fab3b5cc-f44a-11e8-991f-3b1c2d3b37e8
D/192.168.4.201-last_dial_1000/6101
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> fifo debug 1
debug 4
2018-11-30 03:30:31.593350 [DEBUG] mod_fifo.c:2164 FIFO1 waiting 0 consumer_total 0 idle_consumers 0 ring_consumers 0 pri 5
2018-11-30 03:30:31.593350 [DEBUG] mod_fifo.c:2109 Trying priority: 6
2018-11-30 03:30:31.593350 [DEBUG] mod_fifo.c:2109 Trying priority: 7
2018-11-30 03:30:31.593350 [DEBUG] mod_fifo.c:2109 Trying priority: 8
2018-11-30 03:30:31.593350 [DEBUG] mod_fifo.c:2109 Trying priority: 9
2018-11-30 03:30:31.593350 [DEBUG] mod_fifo.c:2109 Trying priority: 10
freeswitch@fs-COM-BT> fifo debug 0
debug 0
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> hash insert/abc/aaaaaaaaa
-ERR Usage: hash insert|insert_ifempty|select|delete|delete_ifmatch/realm/key[/value]
freeswitch@fs-COM-BT> hash insert/abc/aaaaaaaaa/bbbbbbbbbbbbb
+OK
freeswitch@fs-COM-BT> hash select/abc/aaaaaaaaa
bbbbbbbbbbbbb
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> db insert/last_dial/1000/10000
+OK
freeswitch@fs-COM-BT> db select/last_dial/1000
10000
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> db list
${domain}-${cmd},last_dial
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> db list/last_dial
1000
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> db list/${domain}-${cmd}
${user_id}
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> db delete/last_dial/1000
+OK
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> db select/last_dial/1000
-ERR no reply
freeswitch@fs-COM-BT>
//////////////////////////////////////////////////////////////////////////////////////
CREATE TABLE limit_data (
hostname VARCHAR(255),
realm VARCHAR(255),
id VARCHAR(255),
uuid VARCHAR(255)
);
CREATE TABLE db_data (
hostname VARCHAR(255),
realm VARCHAR(255),
data_key VARCHAR(255),
data VARCHAR(255)
);
INSERT INTO "db_data" VALUES('fs-COM-BT','${domain}-${cmd}','${user_id}','${transfer_id};');
CREATE TABLE group_data (
hostname VARCHAR(255),
groupname VARCHAR(255),
url VARCHAR(255)
);
INSERT INTO "group_data" VALUES('fs-COM-BT','[email protected]','[sip_cid_type=none]sofia/gateway/provider/0123456789');
CREATE INDEX ld_hostname on limit_data (hostname);
CREATE INDEX ld_uuid on limit_data (uuid);
CREATE INDEX ld_realm on limit_data (realm);
CREATE INDEX ld_id on limit_data (id);
CREATE INDEX dd_realm on db_data (realm);
CREATE UNIQUE INDEX dd_data_key_realm on db_data (data_key,realm);
CREATE INDEX gd_groupname on group_data (groupname);
CREATE INDEX gd_url on group_data (url);
可以利用APP-db来保存一些中间变量,需要使用时可以直接根据关键字获取
realm/key/value
freeswitch@fs-COM-BT> user_exists id 1001 192.168.4.201
true
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> show channels like 1001
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context
20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8,inbound,2018-11-29 04:06:59,1543482419,sofia/internal/[email protected],CS_EXCHANGE_MEDIA,Outbound Call,1001,192.168.4.211,6101,fifo,FIFO1 in,XML,default,PCMA,8000,64000,PCMA,8000,64000,,fs-COM-BT,[email protected],,1000,ACTIVE,1000,1000,SEND,223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8,Outbound Call,1001,1000,1000,192.168.4.211,6101,XML,default
223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8,outbound,2018-11-29 04:07:01,1543482421,sofia/internal/[email protected]:5060,CS_EXECUTE,Outbound Call,1001,,1001,fifo,FIFO1 out nowait,,default,PCMA,8000,64000,PCMA,8000,64000,,fs-COM-BT,[email protected],,1001,ACTIVE,1000,1000,SEND,223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8,1000,1000,1000,1000,,1001,,default
2 total.
freeswitch@fs-COM-BT>
like may be uuid.............
select * from channels where hostname='%q' and uuid like '%q' or name like '%q' or cid_name like '%q' or cid_num like '%q' or presence_data like '%q' or accountcode like '%q' order by created_epoch
freeswitch@fs-COM-BT> fifo list
{fifo_member_wait=nowait}user/1001
223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
2c828b69402e3012335a3504ca3ce845
{fifo_member_wait=nowait}user/1001
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> show ch
[ channels] [ chat]
freeswitch@fs-COM-BT> show chan
[ channels]
freeswitch@fs-COM-BT> show channels like 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context
223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8,outbound,2018-11-29 04:07:01,1543482421,sofia/internal/[email protected]:5060,CS_EXECUTE,Outbound Call,1001,,1001,fifo,FIFO1 out nowait,,default,PCMA,8000,64000,PCMA,8000,64000,,fs-COM-BT,[email protected],,1001,ACTIVE,1000,1000,SEND,223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8,1000,1000,1000,1000,,1001,,default
1 total.
freeswitch@fs-COM-BT> fifo list FIFO1 xml
{fifo_member_wait=nowait}user/1001
223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
2c828b69402e3012335a3504ca3ce845
freeswitch@fs-COM-BT> uuid_dump 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
Event-Name: CHANNEL_DATA
Core-UUID: 64d48ce8-f396-11e8-9827-3b1c2d3b37e8
FreeSWITCH-Hostname: fs-COM-BT
FreeSWITCH-Switchname: fs-COM-BT
FreeSWITCH-IPv4: 192.168.4.201
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2018-11-29%2004%3A11%3A01
Event-Date-GMT: Thu,%2029%20Nov%202018%2009%3A11%3A01%20GMT
Event-Date-Timestamp: 1543482661053668
Event-Calling-File: mod_commands.c
Event-Calling-Function: uuid_dump_function
Event-Calling-Line-Number: 6367
Event-Sequence: 4603
Channel-State: CS_EXECUTE
Channel-Call-State: ACTIVE
Channel-State-Number: 4
Channel-Name: sofia/internal/1001%40192.168.4.211%3A5060
Unique-ID: 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
Call-Direction: outbound
Presence-Call-Direction: outbound
Channel-HIT-Dialplan: true
Channel-Presence-ID: 1001%40192.168.4.201
Channel-Call-UUID: 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
Answer-State: answered
Channel-Read-Codec-Name: PCMA
Channel-Read-Codec-Rate: 8000
Channel-Read-Codec-Bit-Rate: 64000
Channel-Write-Codec-Name: PCMA
Channel-Write-Codec-Rate: 8000
Channel-Write-Codec-Bit-Rate: 64000
Caller-Direction: outbound
Caller-Logical-Direction: inbound
Caller-Caller-ID-Name: Outbound%20Call
Caller-Caller-ID-Number: 1001
Caller-Orig-Caller-ID-Name: 1000
Caller-Orig-Caller-ID-Number: 1000
Caller-Callee-ID-Name: 1000
Caller-Callee-ID-Number: 1000
Caller-Network-Addr: 192.168.4.211
Caller-ANI: 1000
Caller-Destination-Number: 1001
Caller-Unique-ID: 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
Caller-Source: src/switch_ivr_originate.c
Caller-Context: default
Caller-Channel-Name: sofia/internal/1001%40192.168.4.211%3A5060
Caller-Profile-Index: 2
Caller-Profile-Created-Time: 1543482423233304
Caller-Channel-Created-Time: 1543482421873007
Caller-Channel-Answered-Time: 1543482423212999
Caller-Channel-Progress-Time: 1543482422033411
Caller-Channel-Progress-Media-Time: 1543482423193010
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Channel-Resurrect-Time: 0
Caller-Channel-Bridged-Time: 1543482423233304
Caller-Channel-Last-Hold: 0
Caller-Channel-Hold-Accum: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
Other-Type: originatee
Other-Leg-Direction: inbound
Other-Leg-Logical-Direction: inbound
Other-Leg-Username: 1000
Other-Leg-Dialplan: XML
Other-Leg-Caller-ID-Name: 1000
Other-Leg-Caller-ID-Number: 1000
Other-Leg-Orig-Caller-ID-Name: 1000
Other-Leg-Orig-Caller-ID-Number: 1000
Other-Leg-Network-Addr: 192.168.4.211
Other-Leg-ANI: 1000
Other-Leg-Destination-Number: 6101
Other-Leg-Unique-ID: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
Other-Leg-Source: mod_sofia
Other-Leg-Context: default
Other-Leg-Channel-Name: sofia/internal/1000%40192.168.4.201
Other-Leg-Profile-Created-Time: 1543482423233304
Other-Leg-Channel-Created-Time: 1543482419353489
Other-Leg-Channel-Answered-Time: 1543482419353489
Other-Leg-Channel-Progress-Time: 0
Other-Leg-Channel-Progress-Media-Time: 1543482419353489
Other-Leg-Channel-Hangup-Time: 0
Other-Leg-Channel-Transfer-Time: 0
Other-Leg-Channel-Resurrect-Time: 0
Other-Leg-Channel-Bridged-Time: 0
Other-Leg-Channel-Last-Hold: 0
Other-Leg-Channel-Hold-Accum: 0
Other-Leg-Screen-Bit: true
Other-Leg-Privacy-Hide-Name: false
Other-Leg-Privacy-Hide-Number: false
variable_direction: outbound
variable_is_outbound: true
variable_uuid: 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
variable_session_id: 12
variable_sip_profile_name: internal
variable_video_media_flow: disabled
variable_text_media_flow: disabled
variable_channel_name: sofia/internal/1001%40192.168.4.211%3A5060
variable_sip_destination_url: sip%3A1001%40192.168.4.211%3A5060%3Btransport%3Dudp
variable_dialed_user: 1001
variable_dialed_domain: 192.168.4.201
variable_sip_invite_domain: 192.168.4.201
variable_presence_id: 1001%40192.168.4.201
variable_audio_media_flow: sendrecv
variable_rtp_local_sdp_str: v%3D0%0D%0Ao%3DFreeSWITCH%201543452541%201543452542%20IN%20IP4%20192.168.4.201%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%20192.168.4.201%0D%0At%3D0%200%0D%0Am%3Daudio%2029880%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0Aa%3Dsendrecv%0D%0A
variable_sip_outgoing_contact_uri: %3Csip%3Amod_sofia%40192.168.4.201%3A5060%3E
variable_sip_req_uri: 1001%40192.168.4.211%3A5060%3Btransport%3Dudp
variable_sofia_profile_name: internal
variable_recovery_profile_name: internal
variable_sofia_profile_url: sip%3Amod_sofia%40192.168.4.201%3A5060
variable_sip_local_network_addr: 192.168.4.201
variable_sip_reply_host: 192.168.4.211
variable_sip_reply_port: 5060
variable_sip_network_ip: 192.168.4.211
variable_sip_network_port: 5060
variable_sip_allow: PRACK,%20INVITE,%20ACK,%20BYE,%20CANCEL,%20UPDATE,%20INFO,%20SUBSCRIBE,%20NOTIFY,%20REFER,%20MESSAGE,%20OPTIONS
variable_sip_recover_contact: %3Csip%3A1001%40192.168.4.211%3A5060%3Btransport%3Dudp%3E
variable_sip_full_via: SIP/2.0/UDP%20192.168.4.201%3Brport%3D5060%3Breceived%3D192.168.4.201%3Bbranch%3Dz9hG4bKgF95BBv3Fyjgj
variable_sip_recover_via: SIP/2.0/UDP%20192.168.4.201%3Brport%3D5060%3Breceived%3D192.168.4.201%3Bbranch%3Dz9hG4bKgF95BBv3Fyjgj
variable_sip_from_display: 1000
variable_sip_full_from: %221000%22%20%3Csip%3A1000%40192.168.4.201%3E%3Btag%3Dt6cvp924t9p1B
variable_sip_full_to: %3Csip%3A1001%40192.168.4.211%3E%3Btag%3DebfKeM1o3nBLRaqlNIeW2OoWydfbpfV6
variable_sip_from_user: 1000
variable_sip_from_uri: 1000%40192.168.4.201
variable_sip_from_host: 192.168.4.201
variable_sip_to_user: 1001
variable_sip_to_uri: 1001%40192.168.4.211
variable_sip_to_host: 192.168.4.211
variable_sip_contact_params: transport%3Dudp
variable_sip_contact_user: 1001
variable_sip_contact_port: 5060
variable_sip_contact_uri: 1001%40192.168.4.211%3A5060
variable_sip_contact_host: 192.168.4.211
variable_sip_to_tag: ebfKeM1o3nBLRaqlNIeW2OoWydfbpfV6
variable_sip_from_tag: t6cvp924t9p1B
variable_sip_cseq: 131405146
variable_sip_call_id: f99b0130-6e58-1237-abaf-0007323991f8
variable_switch_r_sdp: v%3D0%0D%0Ao%3Debang%20928269468%20928269469%20IN%20IP4%20192.168.4.211%0D%0As%3D-%0D%0Ac%3DIN%20IP4%20192.168.4.211%0D%0At%3D0%200%0D%0Am%3Daudio%2010002%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Aa%3Dptime%3A20%0D%0A
variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b
variable_rtp_use_codec_string: PCMA%4020i%408000h
variable_remote_audio_media_flow: sendrecv
variable_rtp_audio_recv_pt: 8
variable_rtp_use_codec_name: PCMA
variable_rtp_use_codec_rate: 8000
variable_rtp_use_codec_ptime: 20
variable_rtp_use_codec_channels: 1
variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
variable_read_codec: PCMA
variable_original_read_codec: PCMA
variable_read_rate: 8000
variable_original_read_rate: 8000
variable_write_codec: PCMA
variable_write_rate: 8000
variable_dtmf_type: rfc2833
variable_local_media_ip: 192.168.4.201
variable_local_media_port: 29880
variable_advertised_media_ip: 192.168.4.201
variable_rtp_use_timer_name: soft
variable_rtp_use_pt: 8
variable_rtp_use_ssrc: 3624037325
variable_rtp_2833_send_payload: 101
variable_rtp_2833_recv_payload: 101
variable_remote_media_ip: 192.168.4.211
variable_remote_media_port: 10002
variable_endpoint_disposition: ANSWER
variable_record_stereo: true
variable_default_gateway: example.com
variable_default_areacode: 918
variable_transfer_fallback_extension: operator
variable_toll_allow: domestic,international,local
variable_accountcode: 1001
variable_user_context: default
variable_effective_caller_id_name: Extension%201001
variable_effective_caller_id_number: 1001
variable_outbound_caller_id_name: FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_callfwd_busy: true
variable_Event-Name: REQUEST_PARAMS
variable_Core-UUID: 64d48ce8-f396-11e8-9827-3b1c2d3b37e8
variable_FreeSWITCH-Hostname: fs-COM-BT
variable_FreeSWITCH-Switchname: fs-COM-BT
variable_FreeSWITCH-IPv4: 192.168.4.201
variable_FreeSWITCH-IPv6: %3A%3A1
variable_Event-Date-Local: 2018-11-29%2004%3A07%3A01
variable_Event-Date-GMT: Thu,%2029%20Nov%202018%2009%3A07%3A01%20GMT
variable_Event-Date-Timestamp: 1543482421853344
variable_Event-Calling-File: mod_fifo.c
variable_Event-Calling-Function: outbound_ringall_thread_run
variable_Event-Calling-Line-Number: 1480
variable_Event-Sequence: 4501
variable_origination_caller_id_name: 1000
variable_origination_caller_id_number: 1000
variable_fifo_bridge_uuid: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
variable_fifo_originate_uuid: 223ae858-f3b6-11e8-98b7-3b1c2d3b37e8
variable_absolute_codec_string: PCMA%4020i%408000h
variable_ignore_early_media: true
variable_outbound_redirect_fatal: true
variable_leg_timeout: 60
variable_fifo_outbound_uuid: 2c828b69402e3012335a3504ca3ce845
variable_fifo_name: FIFO1
variable_fifo_member_wait: nowait
variable_originate_early_media: false
variable_pre_transfer_caller_id_name: 1000
variable_pre_transfer_caller_id_number: 1000
variable_call_uuid: 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
variable_current_application_data: FIFO1%20out%20nowait
variable_current_application: fifo
variable_fifo_status: TALKING
variable_fifo_target: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
variable_fifo_timestamp: 2018-11-29%2004%3A07%3A03
variable_fifo_epoch_start_bridge: 1543482423
variable_fifo_role: consumer
variable_fifo_initiated_bridge: true
variable_fifo_bridge_role: consumer
variable_bridge_to: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
variable_last_bridge_to: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
variable_bridge_channel: sofia/internal/1000%40192.168.4.201
variable_bridge_uuid: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
variable_signal_bond: 20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
variable_last_sent_callee_id_name: 1000
variable_last_sent_callee_id_number: 1000
FIFO1
nowait
false
1000
1000
223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8
FIFO1%20out%20nowait
fifo
TALKING
20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
2018-11-29%2004%3A07%3A03
1543482423
consumer
true
consumer
20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
sofia/internal/1000%40192.168.4.201
20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
20b7ce92-f3b6-11e8-98ab-3b1c2d3b37e8
1000
1000
freeswitch@fs-COM-BT> uuid_dump 223c0be8-f3b6-11e8-98bb-3b1c2d3b37e8 xml
freeswitch@fs-COM-BT> show calls count as xml
1001
ACTIVE
1000
1000
SEND
eb923778-f3b7-11e8-98d4-3b1c2d3b37e8
1000
1000
1000
1000
1001
default
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT>
freeswitch@fs-COM-BT> show channels like eb923778-f3b7-11e8-98d4-3b1c2d3b37e8 as xml