-
-
Save ik5/7baee1d21a1dfc7ba81a to your computer and use it in GitHub Desktop.
shout in freeswitch and ahn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2014-09-22 16:46:58.109] DEBUG Adhearsion::Call: @: Receiving message: #<Punchblock::Event::Offer target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13"> | |
[2014-09-22 16:46:58.113] INFO Adhearsion::Router: Call 112913f8-4278-11e4-b9dd-f7c2aa2e003f selected route "shout" (#<Proc:0x0000000333a920@/tmp/shout/config/routes.rb:9>) | |
[2014-09-22 16:46:58.136] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Executing command #<Punchblock::Command::Accept target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Mon, 22 Sep 2014 16:46:58 +0000, request_id="77197a05-5c94-4af6-a059-76215a1d7e14", headers={}> | |
[2014-09-22 16:46:58.167] INFO Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Executing controller #<Adhearsion::CallController call=112913f8-4278-11e4-b9dd-f7c2aa2e003f, metadata={}> | |
[2014-09-22 16:46:58.169] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Receiving message: #<Punchblock::Event::Offer target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13"> | |
[2014-09-22 16:46:58.173] INFO Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: #<Adhearsion::Calls:0x0000000438bf40 @mutex=#<Monitor:0x0000000438bef0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x0000000438bea0>>, @calls={"112913f8-4278-11e4-b9dd-f7c2aa2e003f"=>#<Adhearsion::Call:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13 offer=#<Punchblock::Event::Offer target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">, end_reason=nil, commands=[], variables={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, controllers=[#<Adhearsion::CallController call=112913f8-4278-11e4-b9dd-f7c2aa2e003f, metadata={}>], to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">}, @supervisor=#<Celluloid::ActorProxy(Adhearsion::Calls::Supervisor:0x21c5f00) @collection=#<Adhearsion::Calls:0x0000000438bf40 @mutex=#<Monitor:0x0000000438bef0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x0000000438bea0>>, @calls={"112913f8-4278-11e4-b9dd-f7c2aa2e003f"=>#<Adhearsion::Call:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13 offer=#<Punchblock::Event::Offer target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">, end_reason=nil, commands=[], variables={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, controllers=[#<Adhearsion::CallController call=112913f8-4278-11e4-b9dd-f7c2aa2e003f, metadata={}>], to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">}, @supervisor=..., @by_uri={"xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13"=>#<Adhearsion::Call:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13 offer=#<Punchblock::Event::Offer target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">, end_reason=nil, commands=[], variables={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, controllers=[#<Adhearsion::CallController call=112913f8-4278-11e4-b9dd-f7c2aa2e003f, metadata={}>], to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">}>>, @by_uri={"xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13"=>#<Adhearsion::Call:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13 offer=#<Punchblock::Event::Offer target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">, end_reason=nil, commands=[], variables={"from"=>"<sip:3000@10.15.40.13>;tag=1831101057", "to"=>"<sip:3001@10.15.40.13>", "via"=>"SIP/2.0/UDP 10.15.40.100:5060;rport=5060;branch=z9hG4bK954855362"}, controllers=[#<Adhearsion::CallController call=112913f8-4278-11e4-b9dd-f7c2aa2e003f, metadata={}>], to="sip:3001@10.15.40.13", from="sip:3000@10.15.40.13">}> | |
[2014-09-22 16:46:58.176] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Executing command #<Punchblock::Command::Answer target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Mon, 22 Sep 2014 16:46:58 +0000, request_id="3c644bc2-54c3-4428-a08e-43a399e5b594", headers={}> | |
[2014-09-22 16:46:58.185] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Receiving message: #<Punchblock::Event::Answered target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:46:58 +0000, headers={}> | |
[2014-09-22 16:46:58.318] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Mon, 22 Sep 2014 16:46:58 +0000, request_id="400a0acc-8a7e-4b8c-8711-d80fa218362a", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Mon, 22 Sep 2014 16:46:58 +0000, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US"> | |
<audio src="shout://208.53.164.178:80"/> | |
</speak>>]> | |
[2014-09-22 16:47:08.076] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Receiving message: #<Punchblock::Event::Complete target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id="output-1", source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13/output-1", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:47:08 +0000, reason=#<Punchblock::Event::Complete::Hangup target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Mon, 22 Sep 2014 16:47:08 +0000, name=:hangup>, recording=nil, fax=nil, fax_metadata={}> | |
[2014-09-22 16:47:08.080] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Finished executing controller #<Adhearsion::CallController call=112913f8-4278-11e4-b9dd-f7c2aa2e003f, metadata={}> | |
[2014-09-22 16:47:08.085] INFO Adhearsion::Router::Route: Call 112913f8-4278-11e4-b9dd-f7c2aa2e003f routing completed. Hanging up now. | |
[2014-09-22 16:47:08.086] INFO Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Hanging up | |
[2014-09-22 16:47:08.092] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Executing command #<Punchblock::Command::Hangup target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Mon, 22 Sep 2014 16:47:08 +0000, request_id="a2a52798-3c35-420a-bb8b-8a0090202b50", headers={}> | |
[2014-09-22 16:47:08.560] DEBUG Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Receiving message: #<Punchblock::Event::End target_call_id="112913f8-4278-11e4-b9dd-f7c2aa2e003f", target_mixer_name=nil, component_id=nil, source_uri="xmpp:112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13", domain="10.15.40.13", transport="xmpp", timestamp=Mon, 22 Sep 2014 16:47:08 +0000, headers={}, reason=:hungup, platform_code="16"> | |
AHN> | |
AHN> | |
AHN> | |
AHN> [2014-09-22 16:47:08.560] INFO Adhearsion::Call: 112913f8-4278-11e4-b9dd-f7c2aa2e003f@10.15.40.13: Call ended due to hungup | |
AHN> exit | |
[2014-09-22 16:47:12.251] DEBUG Celluloid: Terminating 3 actors... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adhearsion.router do | |
# Specify your call routes, directing calls with particular attributes to a controller | |
route 'shout' do | |
logger.info Adhearsion.active_calls.inspect | |
answer | |
play "shout://208.53.164.178:80" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment