Skip to content

Instantly share code, notes, and snippets.

@neerajnagi
neerajnagi / gist:6382779
Created August 29, 2013 20:05
rayo.conf.xml
<configuration name="rayo.conf" description="Rayo server config">
<!-- rayo params -->
<settings>
<param name="max-idle-sec" value="300"/>
<param name="mixer-conf-profile" value="sla"/>
</settings>
<!-- record component params -->
@neerajnagi
neerajnagi / gist:6384191
Created August 29, 2013 22:30
ahn play error
[2013-08-29 18:27:50] DEBUG Adhearsion::Call: 2c189471-65a7-8b0b-26df-f9b337fd7b5e@54.213.58.94: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, domain=nil, transport=nil, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=false, 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, domain=nil, transport=nil, 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="/var/punchblock/record/welcome.mp3"/>
</speak>>]>
[2013-08-29 18:27:50] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-2.0.0-p247/gems/blather-0.8.7/lib/blather/client/client.rb:149:in `write') <iq type="set" to="2c189471-65a7-8b0b-26df-f9b337fd7b5e@54.213.58.94" id="blather000c">
<output xmlns="urn:xmpp:rayo:output:1" start-paus
@neerajnagi
neerajnagi / gist:6384677
Created August 29, 2013 23:30
ahn + fs + trace
</stream:features>
[2013-08-29 19:28:21] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-2.0.0-p247/gems/blather-0.8.7/lib/blather/stream/features/sasl.rb:177:in `authenticate') <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">MUA1NC4yMTMuNTguOTQAMQAx</auth>
[2013-08-29 19:28:21] TRACE Punchblock::Connection::XMPP: RECEIVING (success) <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
[2013-08-29 19:28:21] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-2.0.0-p247/gems/blather-0.8.7/lib/blather/stream/client.rb:12:in `start') <stream:stream to='54.213.58.94' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
[2013-08-29 19:28:21] TRACE Punchblock::Connection::XMPP: RECEIVING (stream) <stream:stream xmlns:db="jabber:server:dialback" xmlns:stream="http://etherx.jabber.org/streams" from="54.213.58.94" id="b152d344-1102-11e3-9940-5d997994877d" lang="en" version="1.0"/>
[2013-08-29 19:28:21] TRACE Punchbl
@neerajnagi
neerajnagi / gist:6384920
Created August 30, 2013 00:13
fs + ahn
est-2.compute.internal-2670: ref count = 2
2013-08-29 20:00:46.991334 [DEBUG] mod_rayo.c:930 Deliver d752bc87-7cbb-c2d5-df6d-b364079b95f7@54.213.58.94 => 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-2670 <presence from='d752bc87-7cbb-c2d5-df6d-b364079b95f7@54.213.58.94' to='1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-2670' type='unavailable'><end xmlns='urn:xmpp:rayo:1'><hangup-command/></end></presence>
2013-08-29 20:00:46.991334 [DEBUG] mod_rayo.c:631 Unlock 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-2670: ref count = 1
2013-08-29 20:00:46.991334 [DEBUG] xmpp_streams.c:190 c2s_in 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-2670 SEND <presence from='d752bc87-7cbb-c2d5-df6d-b364079b95f7@54.213.58.94' to='1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-2670' type='unavailable'><end xmlns='urn:xmpp:rayo:1'><hangup-command/></end></presence>
2013-08-29 20:01:22.369197 [DEBUG] xmpp_streams.c:190 c2s_in 1@54.213.58.94/ip-172-31-41-127.us-west-2
ayo.c:1432 Deliver 54.213.58.94 => 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-20729 <iq type='result' from='54.213.58.94' to='1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-20729' id='blatherd9aa'/>
2014-03-03 16:48:23.291176 [DEBUG] mod_rayo.c:631 Unlock 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-20729: ref count = 1
2014-03-03 16:48:23.291176 [DEBUG] xmpp_streams.c:190 c2s_in 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-20729 SEND <iq type='result' from='54.213.58.94' to='1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-20729' id='blatherd9aa'/>
2014-03-03 16:48:28.086319 [DEBUG] xmpp_streams.c:190 c2s_in 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-1696 RECV <iq type="get" to="54.213.58.94" id="blather2303e"><ping xmlns="urn:xmpp:ping"/></iq>
2014-03-03 16:48:28.086319 [DEBUG] xmpp_streams.c:1058 1@54.213.58.94/ip-172-31-41-127.us-west-2.compute.internal-1696, state = READY, node type = NODE_NORMAL
2014-03-03 16:48:28.086319
<joined xmlns="urn:xmpp:rayo:1" call-uri="xmpp:32d2ea84-a321-11e3-92a8-af6f720258e8@176.9.89.23"/>
</presence>
[2014-03-03 23:14:43.550] DEBUG Adhearsion::OutboundCall: 32d2ea84-a321-11e3-92a8-af6f720258e8@176.9.89.23: Receiving message: #<Punchblock::Event:Joined target_call_id="32d2ea84-a321-11e3-92a8-af6f720258e8", target_mixer_name=nil, component_id=nil, source_uri="xmpp:32d2ea84-a321-11e3-92a8-a6f720258e8@176.9.89.23", domain="176.9.89.23", transport="xmpp", timestamp=Mon, 03 Mar 2014 23:14:43 +0100, call_uri="xmpp:dd2a3551-9e30-44f1-1eddb32afc293bd6@176.9.89.23", mixer_name=nil>
[2014-03-03 23:14:43.550] INFO Adhearsion::OutboundCall: 32d2ea84-a321-11e3-92a8-af6f720258e8@176.9.89.23: Joined to call xmpp:dd2a3551-9e30-44f11edd-b32afc293bd6@176.9.89.23
[2014-03-03 23:14:43.554] DEBUG Adhearsion::Call: dd2a3551-9e30-44f1-1edd-b32afc293bd6@176.9.89.23: Receiving message: #<Punchblock::Event::Joinedtarget_call_id="dd2a3551-9e30-44f1-1edd-b32afc293bd6", target_mixer_name=nil, component_id=nil, source_uri="x
2014-03-03 23:23:27.931130 [NOTICE] switch_channel.c:1053 New Channel sofia/internal/test7@176.9.89.23 [54173acc-0fd9-dc5e-4924-6e28477897c6]
2014-03-03 23:23:27.931130 [DEBUG] switch_core_session.c:1049 Send signal sofia/internal/test7@176.9.89.23 [BREAK]
2014-03-03 23:23:27.931130 [DEBUG] switch_core_session.c:1049 Send signal sofia/internal/test7@176.9.89.23 [BREAK]
2014-03-03 23:23:27.931130 [DEBUG] switch_core_state_machine.c:467 (sofia/internal/test7@176.9.89.23) Running State Change CS_NEW
2014-03-03 23:23:27.931130 [DEBUG] sofia.c:8211 sofia/internal/test7@176.9.89.23 receiving invite from 202.157.93.2:59343 version: 1.5.11b git 4b6c08b 2014-02-28 02:17:26Z 64bit
2014-03-03 23:23:27.931130 [DEBUG] sofia.c:8378 IP 202.157.93.2 Rejected by acl "domains". Falling back to Digest auth.
2014-03-03 23:23:27.931130 [DEBUG] switch_core_state_machine.c:486 (sofia/internal/test7@176.9.89.23) State NEW
2014-03-03 23:23:27.931130 [DEBUG] switch_core_session.c:1049 Send signal sofia/internal/test7@176.9.89.23 [BREA
[2014-03-03 23:44:03.901] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq type="error" to="1@176.9.89.23/voz.io-11369" id="5039193b-c91c-48d0-a7e0-fbaac3195ef1" from="4d039cd8-a325-11e3-9789-af6f720258e8@176.9.89.23">
<join xmlns="urn:xmpp:rayo:1" call-uri="xmpp:1ffc3cf6-4fcb-7b7c-c1a1-c435767121eb@176.9.89.23" direction="duplex" media="bridge" mixer-name=""/>
<error type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" lang="en">b-leg is not a rayo call</text>
</error>
</iq>
[2014-03-03 23:44:03.904] ERROR Adhearsion::OutboundCall: 4d039cd8-a325-11e3-9789-af6f720258e8@176.9.89.23: <Punchblock::ProtocolError> #<Punchblock::ProtocolError: name=:service_unavailable text="b-leg is not a rayo call" call_id="4d039cd8-a325-11e3-9789-af6f720258e8" component_id=nil>
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.2/lib/celluloid/responses.rb:29:in `value'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/
[2014-03-04 21:35:11] TRACE Adhearsion::Initializer: OS: linux - RUBY: jruby 1.9.3
[2014-03-04 21:35:11] TRACE Adhearsion::Initializer: Environment: {"NLSPATH"=>"/usr/dt/lib/nls/msg/%L/%N.cat", "MY_RUBY_HOME"=>"/home/letmecallu_voip/.rvm/rubies/jruby-1.7.11", "RUBYLIB"=>"/home/letmecallu_voip/.rvm/gems/jruby-1.7.11@global/gems/bundler-1.5.3/lib", "USERNAME"=>"root", "BUNDLE_BIN_PATH"=>"/home/letmecallu_voip/.rvm/gems/jruby-1.7.11@global/gems/bundler-1.5.3/bin/bundle", "SHELL"=>"/bin/bash", "XFILESEARCHPATH"=>"/usr/dt/app-defaults/%L/Dt", "TERM"=>"xterm", "IRBRC"=>"/home/letmecallu_voip/.rvm/rubies/jruby-1.7.11/.irbrc", "MAIL"=>"/var/spool/mail/letmecallu_voip", "HOSTNAME"=>"st.letmecallu.roobykon.com", "PWD"=>"/home/letmecallu_voip/voip-server-side/vozio-server-rayo", "GEM_HOME"=>"/home/letmecallu_voip/.rvm/gems/jruby-1.7.11", "SUDO_USER"=>"letmecallu_voip", "HOME"=>"/root", "USER"=>"root", "RUBYOPT"=>"-rbundler/setup", "BUNDLE_GEMFILE"=>"/home/letmecallu_voip/voip-server-side/vozio-server-rayo/Gemfile", "PAT
This file has been truncated, but you can view the full file.
[2014-03-04 21:35:11] TRACE Adhearsion::Initializer: OS: linux - RUBY: jruby 1.9.3
[2014-03-04 21:35:11] TRACE Adhearsion::Initializer: Environment: {"NLSPATH"=>"/usr/dt/lib/nls/msg/%L/%N.cat", "MY_RUBY_HOME"=>"/home/letmecallu_voip/.rvm/rubies/jruby-1.7.11", "RUBYLIB"=>"/home/letmecallu_voip/.rvm/gems/jruby-1.7.11@global/gems/bundler-1.5.3/lib", "USERNAME"=>"root", "BUNDLE_BIN_PATH"=>"/home/letmecallu_voip/.rvm/gems/jruby-1.7.11@global/gems/bundler-1.5.3/bin/bundle", "SHELL"=>"/bin/bash", "XFILESEARCHPATH"=>"/usr/dt/app-defaults/%L/Dt", "TERM"=>"xterm", "IRBRC"=>"/home/letmecallu_voip/.rvm/rubies/jruby-1.7.11/.irbrc", "MAIL"=>"/var/spool/mail/letmecallu_voip", "HOSTNAME"=>"st.letmecallu.roobykon.com", "PWD"=>"/home/letmecallu_voip/voip-server-side/vozio-server-rayo", "GEM_HOME"=>"/home/letmecallu_voip/.rvm/gems/jruby-1.7.11", "SUDO_USER"=>"letmecallu_voip", "HOME"=>"/root", "USER"=>"root", "RUBYOPT"=>"-rbundler/setup", "BUNDLE_GEMFILE"=>"/home/letmecallu_voip/voip-server-side/vozio-server-rayo/Gemfile", "PAT