- CALLER: 1234567
- AGENT: 1001
- FS IP: 10.0.1.2
- ASTERISK IP: 10.0.9.2
- freeswitch@freeswitch.local> show calls
- uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_accountcode,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch
- 88926e10-e3ef-e911-81e3-005056bf2238,inbound,2019-10-16 09:03:32,1571209412,sofia/internal/1234567@10.0.1.2,CS_EXECUTE,Unknown user,1234567,10.0.1.2,1001,1234567@10.0.1.2,,,ACTIVE,Outbound Call,1001,SEND,88926e10-e3ef-e911-81e3-005056bf2238,freeswitch.local,Outbound Call,1001,6c7e7310-e3ef-e911-81e3-005056bf2238,outbound,2019-10-16 09:03:32,1571209412,sofia/local/1001@10.135.2.122:49318,CS_EXCHANGE_MEDIA,Unknown user,1234567,10.0.1.2,1001,1001@10.0.1.2,,,ACTIVE,Outbound Call,1001,SEND,Unknown user,1234567,1571209412
- 303e6e10-e3ef-e911-81e3-005056bf2238,outbound,2019-10-16 09:03:32,1571209412,sofia/external/1001@10.0.1.2,CS_EXECUTE,Outbound Call,1001,,1001,,,,ACTIVE,Unknown user,1234567,RECV,303e6e10-e3ef-e911-81e3-005056bf2238,freeswitch.local,,,,,,,,,,,,,,,,,,,,,,
- 7fdaac0a-e3ef-e911-81e3-005056bf2238,inbound,2019-10-16 09:03:22,1571209402,sofia/internal/1234567@10.0.9.2,CS_EXECUTE,Unknown user,1234567,10.0.9.2,4777,1234567@10.0.9.2,,,ACTIVE,,,,,freeswitch.local,,,,,,,,,,,,,,,,,,,,,,
- 3 total.
- freeswitch@freeswitch.local> show channels
- 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
- 7fdaac0a-e3ef-e911-81e3-005056bf2238,inbound,2019-10-16 09:03:22,1571209402,sofia/internal/1234567@10.0.9.2,CS_EXECUTE,Unknown user,1234567,10.0.9.2,4777,conference,5da6c0c7ea205b57d78a0e80+flags{dist-dtmf,nomoh},XML,public,L16,8000,128000,PCMA,8000,64000,,freeswitch.local,1234567@10.0.9.2,,,ACTIVE,,,,,,,Unknown user,1234567,10.0.9.2,4777,XML,public
- 303e6e10-e3ef-e911-81e3-005056bf2238,outbound,2019-10-16 09:03:32,1571209412,sofia/external/1001@10.0.1.2,CS_EXECUTE,Outbound Call,1001,,1001,conference,5da6c0c7ea205b57d78a0e80+flags{dist-dtmf,nomoh},,default,L16,48000,768000,opus,48000,0,,freeswitch.local,,,,ACTIVE,Unknown user,1234567,RECV,303e6e10-e3ef-e911-81e3-005056bf2238,,,Unknown user,1234567,,1001,,default
- 88926e10-e3ef-e911-81e3-005056bf2238,inbound,2019-10-16 09:03:32,1571209412,sofia/internal/1234567@10.0.1.2,CS_EXECUTE,Unknown user,1234567,10.0.1.2,1001,bridge,user/1001@10.0.1.2,XML,public,opus,48000,0,opus,48000,0,,freeswitch.local,1234567@10.0.1.2,,,ACTIVE,Outbound Call,1001,SEND,88926e10-e3ef-e911-81e3-005056bf2238,Outbound Call,1001,Unknown user,1234567,10.0.1.2,1001,XML,public
- 6c7e7310-e3ef-e911-81e3-005056bf2238,outbound,2019-10-16 09:03:32,1571209412,sofia/local/1001@10.135.2.122:49318,CS_EXCHANGE_MEDIA,Unknown user,1234567,10.0.1.2,1001,,,XML,public,opus,48000,0,opus,48000,0,,freeswitch.local,1001@10.0.1.2,,,ACTIVE,Outbound Call,1001,SEND,88926e10-e3ef-e911-81e3-005056bf2238,Unknown user,1234567,Unknown user,1234567,10.0.1.2,1001,XML,public
- 4 total.
- freeswitch@freeswitch.local> sofia status
- Name Type Data State
- =================================================================================================
- external profile sip:mod_sofia@10.0.1.2:5080 RUNNING (0)
- 10.0.1.2 alias external ALIASED
- local profile sip:mod_sofia@10.0.1.3:5060 RUNNING (0)
- internal profile sip:mod_sofia@10.0.1.2:5060 RUNNING (0)
- =================================================================================================
- <include>
- <extension name="any_to_agents" continue="false">
- <condition field="destination_number" expression="^(1\d{3})$">
- <action application="info"/>
- <action application="set" data="hangup_after_bridge=true"/>
- <action application="set" data="domain_name=$${domain}"/>
- <action application="log" data="Incoming call to AGENT: $1"/>
- <action application="bridge" data="user/$1@${domain_name}"/>
- <action application="hangup"/>
- </condition>
- </extension>
- </include>