Skip to content

Instantly share code, notes, and snippets.

@ssinyagin
Created November 1, 2012 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssinyagin/3997100 to your computer and use it in GitHub Desktop.
Save ssinyagin/3997100 to your computer and use it in GitHub Desktop.
freeswitch sbc: gateway variables
2012-11-01 23:24:52.507287 [NOTICE] switch_channel.c:951 New Channel sofia/outside/0794070224@212.117.203.41 [f4b8691e-2472-11e2-bd2e-b701f648768e]
2012-11-01 23:24:52.507287 [DEBUG] switch_core_session.c:905 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.507287 [DEBUG] switch_core_session.c:905 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.507287 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_NEW
2012-11-01 23:24:52.507287 [DEBUG] switch_core_state_machine.c:416 (sofia/outside/0794070224@212.117.203.41) State NEW
2012-11-01 23:24:52.527245 [DEBUG] sofia.c:6282 Channel sofia/outside/0794070224@212.117.203.41 entering state [received][100]
2012-11-01 23:24:52.527245 [DEBUG] sofia.c:6293 Remote SDP:
v=0
o=Sippy 25552224 0 IN IP4 212.117.203.41
s=Cisco SDP 0
t=0 0
m=audio 16552 RTP/AVP 0 8 18 101 102 3 99 100
c=IN IP4 212.117.203.76
a=rtpmap:101 G.729a/8000
a=rtpmap:102 G.729b/8000
a=rtpmap:99 telephone-event/8000
a=fmtp:99 0-15
a=rtpmap:100 X-NSE/8000
a=fmtp:100 200-202
a=direction:passive
a=X-sqn:0
a=X-cap: 1 audio RTP/AVP 100
a=X-cpar: a=rtpmap:100 X-NSE/8000
a=X-cpar: a=fmtp:100 200-202
a=X-cap: 2 image udptl t38
2012-11-01 23:24:52.527245 [DEBUG] sofia.c:6506 (sofia/outside/0794070224@212.117.203.41) State Change CS_NEW -> CS_INIT
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1210 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_INIT
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:437 (sofia/outside/0794070224@212.117.203.41) State INIT
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:86 sofia/outside/0794070224@212.117.203.41 SOFIA INIT
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:126 (sofia/outside/0794070224@212.117.203.41) State Change CS_INIT -> CS_ROUTING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1210 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:437 (sofia/outside/0794070224@212.117.203.41) State INIT going to sleep
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_ROUTING
2012-11-01 23:24:52.527245 [DEBUG] switch_channel.c:1964 (sofia/outside/0794070224@212.117.203.41) Callstate Change DOWN -> RINGING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:446 (sofia/outside/0794070224@212.117.203.41) State ROUTING
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:149 sofia/outside/0794070224@212.117.203.41 SOFIA ROUTING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:117 sofia/outside/0794070224@212.117.203.41 Standard ROUTING
2012-11-01 23:24:52.527245 [INFO] mod_dialplan_xml.c:485 Processing 0794070224 <0794070224>->0325133196 in context outside
Dialplan: sofia/outside/0794070224@212.117.203.41 parsing [outside->call_debug] continue=true
Dialplan: sofia/outside/0794070224@212.117.203.41 Regex (PASS) [call_debug] ${call_debug}(true) =~ /^true$/ break=never
Dialplan: sofia/outside/0794070224@212.117.203.41 Action info()
Dialplan: sofia/outside/0794070224@212.117.203.41 Action log(INFO Country code: ${sbc_callee_ccode})
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:167 (sofia/outside/0794070224@212.117.203.41) State Change CS_ROUTING -> CS_EXECUTE
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1210 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:446 (sofia/outside/0794070224@212.117.203.41) State ROUTING going to sleep
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_EXECUTE
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:453 (sofia/outside/0794070224@212.117.203.41) State EXECUTE
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:242 sofia/outside/0794070224@212.117.203.41 SOFIA EXECUTE
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:209 sofia/outside/0794070224@212.117.203.41 Standard EXECUTE
EXECUTE sofia/outside/0794070224@212.117.203.41 info()
2012-11-01 23:24:52.527245 [INFO] mod_dptools.c:1504 CHANNEL_DATA:
Channel-State: [CS_EXECUTE]
Channel-Call-State: [RINGING]
Channel-State-Number: [4]
Channel-Name: [sofia/outside/0794070224@212.117.203.41]
Unique-ID: [f4b8691e-2472-11e2-bd2e-b701f648768e]
Call-Direction: [inbound]
Presence-Call-Direction: [inbound]
Channel-HIT-Dialplan: [true]
Channel-Call-UUID: [f4b8691e-2472-11e2-bd2e-b701f648768e]
Answer-State: [ringing]
Caller-Direction: [inbound]
Caller-Username: [0794070224]
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [0794070224]
Caller-Caller-ID-Number: [0794070224]
Caller-Network-Addr: [212.117.203.41]
Caller-ANI: [0794070224]
Caller-Destination-Number: [0325133196]
Caller-Unique-ID: [f4b8691e-2472-11e2-bd2e-b701f648768e]
Caller-Source: [mod_sofia]
Caller-Context: [outside]
Caller-Channel-Name: [sofia/outside/0794070224@212.117.203.41]
Caller-Profile-Index: [1]
Caller-Profile-Created-Time: [1351808692527245]
Caller-Channel-Created-Time: [1351808692527245]
Caller-Channel-Answered-Time: [0]
Caller-Channel-Progress-Time: [0]
Caller-Channel-Progress-Media-Time: [0]
Caller-Channel-Hangup-Time: [0]
Caller-Channel-Transfer-Time: [0]
Caller-Screen-Bit: [true]
Caller-Privacy-Hide-Name: [false]
Caller-Privacy-Hide-Number: [false]
variable_direction: [inbound]
variable_uuid: [f4b8691e-2472-11e2-bd2e-b701f648768e]
variable_session_id: [1]
variable_sip_from_user: [0794070224]
variable_sip_from_uri: [0794070224@212.117.203.41]
variable_sip_from_host: [212.117.203.41]
variable_channel_name: [sofia/outside/0794070224@212.117.203.41]
variable_sip_call_id: [2fb79134-3d4c04d2-6770df6d-8ffd@sip.iforb.com~1o~1o]
variable_sip_local_network_addr: [80.254.71.122]
variable_sip_network_ip: [212.117.203.41]
variable_sip_network_port: [5060]
variable_sip_received_ip: [212.117.203.41]
variable_sip_received_port: [5060]
variable_sip_via_protocol: [udp]
variable_sip_from_user_stripped: [0794070224]
variable_sip_from_tag: [xvqcg6heudokuhsb.o]
variable_sofia_profile_name: [outside]
variable_recovery_profile_name: [outside]
variable_sip_invite_record_route: [<sip:212.117.203.41:5060;lr;transport=udp>]
variable_sip_full_via: [SIP/2.0/UDP 212.117.203.41:5060;branch=z9hG4bK-d8754z-b41aaf25a34a4f6b-1---d8754z-;rport=5060,SIP/2.0/UDP 212.117.203.41:5061;branch=z9hG4bK-ufbbjuyqszpwkorg;rport=5061]
variable_sip_from_display: [0794070224]
variable_sip_full_from: ["0794070224" <sip:0794070224@212.117.203.41>;tag=xvqcg6heudokuhsb.o]
variable_sip_full_to: [<sip:41325133196@212.117.203.41>]
variable_sip_req_params: [transport=udp;gw=sipcall_41325133196]
variable_sip_req_user: [gw+sipcall_41325133196]
variable_sip_req_port: [5080]
variable_sip_req_uri: [gw+sipcall_41325133196@80.254.71.122:5080]
variable_sip_req_host: [80.254.71.122]
variable_sip_to_user: [41325133196]
variable_sip_to_uri: [41325133196@212.117.203.41]
variable_sip_to_host: [212.117.203.41]
variable_sip_contact_user: [nobody]
variable_sip_contact_port: [5061]
variable_sip_contact_uri: [nobody@212.117.203.41:5061]
variable_sip_contact_host: [212.117.203.41]
variable_sip_user_agent: [Sippy]
variable_sip_via_host: [212.117.203.41]
variable_sip_via_port: [5060]
variable_sip_via_rport: [5060]
variable_max_forwards: [69]
variable_sip_gateway: [sipcall_41325133196]
variable_switch_r_sdp: [v=0
o=Sippy 25552224 0 IN IP4 212.117.203.41
s=Cisco SDP 0
t=0 0
m=audio 16552 RTP/AVP 0 8 18 101 102 3 99 100
c=IN IP4 212.117.203.76
a=rtpmap:101 G.729a/8000
a=rtpmap:102 G.729b/8000
a=rtpmap:99 telephone-event/8000
a=fmtp:99 0-15
a=rtpmap:100 X-NSE/8000
a=fmtp:100 200-202
a=direction:passive
a=X-sqn:0
a=X-cap: 1 audio RTP/AVP 100
a=X-cpar: a=rtpmap:100 X-NSE/8000
a=X-cpar: a=fmtp:100 200-202
a=X-cap: 2 image udptl t38
]
variable_ep_codec_string: [PCMU@8000h@20i@64000b,PCMA@8000h@20i@64000b,G729@8000h@20i@8000b]
variable_endpoint_disposition: [DELAYED NEGOTIATION]
variable_call_uuid: [f4b8691e-2472-11e2-bd2e-b701f648768e]
variable_current_application: [info]
EXECUTE sofia/outside/0794070224@212.117.203.41 log(INFO Country code: )
2012-11-01 23:24:52.527245 [INFO] mod_dptools.c:1485 Country code:
2012-11-01 23:24:52.527245 [NOTICE] switch_core_state_machine.c:262 sofia/outside/0794070224@212.117.203.41 has executed the last dialplan instruction, hanging up.
2012-11-01 23:24:52.527245 [DEBUG] switch_channel.c:2950 (sofia/outside/0794070224@212.117.203.41) Callstate Change RINGING -> HANGUP
2012-11-01 23:24:52.527245 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/outside/0794070224@212.117.203.41 [CS_EXECUTE] [NORMAL_CLEARING]
2012-11-01 23:24:52.527245 [DEBUG] switch_channel.c:2973 Send signal sofia/outside/0794070224@212.117.203.41 [KILL]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1210 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:453 (sofia/outside/0794070224@212.117.203.41) State EXECUTE going to sleep
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_HANGUP
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:638 (sofia/outside/0794070224@212.117.203.41) State HANGUP
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:483 Channel sofia/outside/0794070224@212.117.203.41 hanging up, cause: NORMAL_CLEARING
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:48 sofia/outside/0794070224@212.117.203.41 Standard HANGUP, cause: NORMAL_CLEARING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:638 (sofia/outside/0794070224@212.117.203.41) State HANGUP going to sleep
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:429 (sofia/outside/0794070224@212.117.203.41) State Change CS_HANGUP -> CS_REPORTING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1210 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:398 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_REPORTING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:703 (sofia/outside/0794070224@212.117.203.41) State REPORTING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:92 sofia/outside/0794070224@212.117.203.41 Standard REPORTING, cause: NORMAL_CLEARING
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:703 (sofia/outside/0794070224@212.117.203.41) State REPORTING going to sleep
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:423 (sofia/outside/0794070224@212.117.203.41) State Change CS_REPORTING -> CS_DESTROY
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1210 Send signal sofia/outside/0794070224@212.117.203.41 [BREAK]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_session.c:1415 Session 1 (sofia/outside/0794070224@212.117.203.41) Locked, Waiting on external entities
2012-11-01 23:24:52.527245 [NOTICE] switch_core_session.c:1433 Session 1 (sofia/outside/0794070224@212.117.203.41) Ended
2012-11-01 23:24:52.527245 [NOTICE] switch_core_session.c:1437 Close Channel sofia/outside/0794070224@212.117.203.41 [CS_DESTROY]
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:527 (sofia/outside/0794070224@212.117.203.41) Callstate Change HANGUP -> DOWN
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:530 (sofia/outside/0794070224@212.117.203.41) Running State Change CS_DESTROY
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:540 (sofia/outside/0794070224@212.117.203.41) State DESTROY
2012-11-01 23:24:52.527245 [DEBUG] mod_sofia.c:376 sofia/outside/0794070224@212.117.203.41 SOFIA DESTROY
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:99 sofia/outside/0794070224@212.117.203.41 Standard DESTROY
2012-11-01 23:24:52.527245 [DEBUG] switch_core_state_machine.c:540 (sofia/outside/0794070224@212.117.203.41) State DESTROY going to sleep
2012-11-01 23:24:52.927291 [WARNING] sofia.c:5448 Ping succeeded sipcall_41325133196 with code 501 - count -1/1/1, state UP
freeswitch@internal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment