From zbuzanic, 5 Years ago, written in Plain Text.
- view diff
Embed
  1. CALLER: 1234567
  2. AGENT: 1001
  3. FS IP: 10.0.1.2
  4. ASTERISK IP: 10.0.9.2
  5.  
  6.  
  7. freeswitch@freeswitch.local> show calls
  8. 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
  9. 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
  10. 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,,,,,,,,,,,,,,,,,,,,,,
  11. 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,,,,,,,,,,,,,,,,,,,,,,
  12.  
  13. 3 total.
  14.  
  15.  
  16. freeswitch@freeswitch.local> show channels
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22.  
  23. 4 total.
  24.  
  25.  
  26. freeswitch@freeswitch.local> sofia status
  27.                      Name          Type                                       Data      State
  28. =================================================================================================
  29.                  external       profile           sip:mod_sofia@10.0.1.2:5080      RUNNING (0)
  30.                  10.0.1.2         alias                              external      ALIASED
  31.                     local       profile           sip:mod_sofia@10.0.1.3:5060      RUNNING (0)
  32.                  internal       profile           sip:mod_sofia@10.0.1.2:5060      RUNNING (0)
  33. =================================================================================================
  34.  
  35.  
  36. <include>
  37.  
  38. <extension name="any_to_agents" continue="false">
  39.     <condition field="destination_number" expression="^(1\d{3})$">
  40.         <action application="info"/>
  41.         <action application="set" data="hangup_after_bridge=true"/>
  42.         <action application="set" data="domain_name=$${domain}"/>
  43.         <action application="log" data="Incoming call to AGENT: $1"/>
  44.         <action application="bridge" data="user/$1@${domain_name}"/>
  45.         <action application="hangup"/>
  46.     </condition>
  47. </extension>
  48. </include>
  49.