Routing in 3.0.0.rc1

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Routing in 3.0.0.rc1

Andrius Kairiukstis-2
Hello,

Routes is changed in version 3 and I am getting error about agi_context. How I could route calls based on Asterisk PBX context in version 3?
Code:

Adhearsion.router do
  route 'Calls from Asterisk context test-moh',    AsteriskMusic,  agi_context: 'test-moh'
  route 'Calls from Asterisk context test-digium', AsteriskDigium, agi_context: 'test-digium'
  route 'Calls from Asterisk context test-echo',   AsteriskEcho,   agi_context: 'test-echo'

  # Do not playback ringing indication
  unaccepting do
    route 'default', Default
  end
end

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Routing in 3.0.0.rc1

Ben Langfeld
Show us the errors?

Enviado do meu iPhone

Em 9 Jan 2016, às 14:25, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

Routes is changed in version 3 and I am getting error about agi_context. How I could route calls based on Asterisk PBX context in version 3?
Code:

Adhearsion.router do
  route 'Calls from Asterisk context test-moh',    AsteriskMusic,  agi_context: 'test-moh'
  route 'Calls from Asterisk context test-digium', AsteriskDigium, agi_context: 'test-digium'
  route 'Calls from Asterisk context test-echo',   AsteriskEcho,   agi_context: 'test-echo'

  # Do not playback ringing indication
  unaccepting do
    route 'default', Default
  end
end

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Routing in 3.0.0.rc1

Andrius Kairiukstis-2
AHN> [2016-01-09 17:16:49.710] DEBUG Adhearsion::Call: @: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968",
 target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"asy
nc", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_c
allerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dni
d"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0
", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c88
7-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000,
 headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-ag
i_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-a
gi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priorit
y"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] ERROR Adhearsion::Rayo::Initializer: <NoMethodError> undefined method `agi_context' for #<Adhearsion::Call:67a5c887-8008-4cd0-9ba7-f
ad077996968@ offer=#<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil,
domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"
=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_calli
ngpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_contex
t"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"14024488890
9680"}, to="97212345678", from="901 <SIP/901>">, end_reason=nil, commands=[], variables={"x_agi_request"=>"async", "x_agi_channel"=>"SIP/901-0000000f", "x_agi
_language"=>"en", "x_agi_type"=>"SIP", "x_agi_uniqueid"=>"1452359809.15", "x_agi_version"=>"11.17.1", "x_agi_callerid"=>"901", "x_agi_calleridname"=>"901", "x
_agi_callingpres"=>"0", "x_agi_callingani2"=>"0", "x_agi_callington"=>"0", "x_agi_callingtns"=>"0", "x_agi_dnid"=>"97212345678", "x_agi_rdnis"=>"unknown", "x_
agi_context"=>"x2one-default", "x_agi_extension"=>"97212345678", "x_agi_priority"=>"1", "x_agi_enhanced"=>"0.0", "x_agi_accountcode"=>"", "x_agi_threadid"=>"1
40244888909680"}, controllers=[], to="97212345678", from="901 <SIP/901>">
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:30:in `check'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:24:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
        (celluloid):0:in `remote procedure call'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/call.rb:22:in `method_missing'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:206:in `block (2 levels) in guarded?'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `find'
       /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `block in guarded?'                                   [1528/8602]
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `guarded?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router/route.rb:25:in `match?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `block in match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `each'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `find'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:32:in `handle'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:138:in `block in dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/foundation/exception_handler.rb:5:in `catching_standard_errors'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:130:in `dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:63:in `block in init'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:162:in `call_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:15:in `call_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:141:in `block (3 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `block (2 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `block in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `trigger_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:34:in `work'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
[2016-01-09 17:17:55.350] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Asterisk::AMI target_call_id=
"67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:17:5
5 +0000, name="HangupRequest", headers={"Privilege"=>"call,all", "Timestamp"=>"1452359875.334840", "Channel"=>"SIP/901-0000000f", "Uniqueid"=>"1452359809.15"}
>

On Saturday, 9 January 2016 17:36:16 UTC+1, Ben Langfeld wrote:
Show us the errors?

Enviado do meu iPhone

Em 9 Jan 2016, às 14:25, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2URVsix-DAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">and...@...> escreveu:

Hello,

Routes is changed in version 3 and I am getting error about agi_context. How I could route calls based on Asterisk PBX context in version 3?
Code:

Adhearsion.router do
  route 'Calls from Asterisk context test-moh',    AsteriskMusic,  agi_context: 'test-moh'
  route 'Calls from Asterisk context test-digium', AsteriskDigium, agi_context: 'test-digium'
  route 'Calls from Asterisk context test-echo',   AsteriskEcho,   agi_context: 'test-echo'

  # Do not playback ringing indication
  unaccepting do
    route 'default', Default
  end
end

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2URVsix-DAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Routing in 3.0.0.rc1

Ben Langfeld
This method is added by adhearsion-asterisk: https://github.com/adhearsion/adhearsion-asterisk/blob/develop/lib/adhearsion/asterisk/has_agi_context.rb

Do you have it loaded?

On Jan 9, 2016, at 14:42, Andrius Kairiukstis <[hidden email]> wrote:

AHN> [2016-01-09 17:16:49.710] DEBUG Adhearsion::Call: @: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968",
 target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"asy
nc", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_c
allerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dni
d"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0
", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c88
7-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000,
 headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-ag
i_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-a
gi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priorit
y"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] ERROR Adhearsion::Rayo::Initializer: <NoMethodError> undefined method `agi_context' for #<Adhearsion::Call:67a5c887-8008-4cd0-9ba7-f
ad077996968@ offer=#<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil,
domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"
=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_calli
ngpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_contex
t"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"14024488890
9680"}, to="97212345678", from="901 <SIP/901>">, end_reason=nil, commands=[], variables={"x_agi_request"=>"async", "x_agi_channel"=>"SIP/901-0000000f", "x_agi
_language"=>"en", "x_agi_type"=>"SIP", "x_agi_uniqueid"=>"1452359809.15", "x_agi_version"=>"11.17.1", "x_agi_callerid"=>"901", "x_agi_calleridname"=>"901", "x
_agi_callingpres"=>"0", "x_agi_callingani2"=>"0", "x_agi_callington"=>"0", "x_agi_callingtns"=>"0", "x_agi_dnid"=>"97212345678", "x_agi_rdnis"=>"unknown", "x_
agi_context"=>"x2one-default", "x_agi_extension"=>"97212345678", "x_agi_priority"=>"1", "x_agi_enhanced"=>"0.0", "x_agi_accountcode"=>"", "x_agi_threadid"=>"1
40244888909680"}, controllers=[], to="97212345678", from="901 <SIP/901>">
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:30:in `check'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:24:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
        (celluloid):0:in `remote procedure call'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/call.rb:22:in `method_missing'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:206:in `block (2 levels) in guarded?'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `find'
       /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `block in guarded?'                                   [1528/8602]
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `guarded?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router/route.rb:25:in `match?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `block in match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `each'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `find'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:32:in `handle'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:138:in `block in dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/foundation/exception_handler.rb:5:in `catching_standard_errors'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:130:in `dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:63:in `block in init'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:162:in `call_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:15:in `call_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:141:in `block (3 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `block (2 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `block in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `trigger_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:34:in `work'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
[2016-01-09 17:17:55.350] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Asterisk::AMI target_call_id=
"67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:17:5
5 +0000, name="HangupRequest", headers={"Privilege"=>"call,all", "Timestamp"=>"1452359875.334840", "Channel"=>"SIP/901-0000000f", "Uniqueid"=>"1452359809.15"}
>

On Saturday, 9 January 2016 17:36:16 UTC+1, Ben Langfeld wrote:
Show us the errors?

Enviado do meu iPhone

Em 9 Jan 2016, às 14:25, Andrius Kairiukstis <and...@kairiukstis.com> escreveu:

Hello,

Routes is changed in version 3 and I am getting error about agi_context. How I could route calls based on Asterisk PBX context in version 3?
Code:

Adhearsion.router do
  route 'Calls from Asterisk context test-moh',    AsteriskMusic,  agi_context: 'test-moh'
  route 'Calls from Asterisk context test-digium', AsteriskDigium, agi_context: 'test-digium'
  route 'Calls from Asterisk context test-echo',   AsteriskEcho,   agi_context: 'test-echo'

  # Do not playback ringing indication
  unaccepting do
    route 'default', Default
  end
end


-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Routing in 3.0.0.rc1

Andrius Kairiukstis-2
Thank you,

It were not new installation, I upgraded previous application. I were received conflict error due of adhearsion-asterisk and since I did not use it in project, removed it. Now I fixed gemfile and version and everything works

On Saturday, 9 January 2016 19:19:55 UTC+1, Ben Langfeld wrote:
This method is added by adhearsion-asterisk: <a href="https://github.com/adhearsion/adhearsion-asterisk/blob/develop/lib/adhearsion/asterisk/has_agi_context.rb" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion-asterisk%2Fblob%2Fdevelop%2Flib%2Fadhearsion%2Fasterisk%2Fhas_agi_context.rb\46sa\75D\46sntz\0751\46usg\75AFQjCNHhZDnx8mXP0EYnQzoCkjJq-FrJew&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fadhearsion%2Fadhearsion-asterisk%2Fblob%2Fdevelop%2Flib%2Fadhearsion%2Fasterisk%2Fhas_agi_context.rb\46sa\75D\46sntz\0751\46usg\75AFQjCNHhZDnx8mXP0EYnQzoCkjJq-FrJew&#39;;return true;">https://github.com/adhearsion/adhearsion-asterisk/blob/develop/lib/adhearsion/asterisk/has_agi_context.rb

Do you have it loaded?

On Jan 9, 2016, at 14:42, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="wIFPmdSDDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">and...@...> wrote:

AHN> [2016-01-09 17:16:49.710] DEBUG Adhearsion::Call: @: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968",
 target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"asy
nc", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_c
allerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dni
d"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0
", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c88
7-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000,
 headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-ag
i_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-a
gi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priorit
y"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] ERROR Adhearsion::Rayo::Initializer: <NoMethodError> undefined method `agi_context' for #<Adhearsion::Call:67a5c887-8008-4cd0-9ba7-f
ad077996968@ offer=#<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil,
domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"
=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_calli
ngpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_contex
t"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"14024488890
9680"}, to="97212345678", from="901 <SIP/901>">, end_reason=nil, commands=[], variables={"x_agi_request"=>"async", "x_agi_channel"=>"SIP/901-0000000f", "x_agi
_language"=>"en", "x_agi_type"=>"SIP", "x_agi_uniqueid"=>"1452359809.15", "x_agi_version"=>"11.17.1", "x_agi_callerid"=>"901", "x_agi_calleridname"=>"901", "x
_agi_callingpres"=>"0", "x_agi_callingani2"=>"0", "x_agi_callington"=>"0", "x_agi_callingtns"=>"0", "x_agi_dnid"=>"97212345678", "x_agi_rdnis"=>"unknown", "x_
agi_context"=>"x2one-default", "x_agi_extension"=>"97212345678", "x_agi_priority"=>"1", "x_agi_enhanced"=>"0.0", "x_agi_accountcode"=>"", "x_agi_threadid"=>"1
40244888909680"}, controllers=[], to="97212345678", from="901 <SIP/901>">
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:30:in `check'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:24:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
        (celluloid):0:in `remote procedure call'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/call.rb:22:in `method_missing'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:206:in `block (2 levels) in guarded?'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `find'
       /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `block in guarded?'                                   [1528/8602]
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `guarded?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router/route.rb:25:in `match?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `block in match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `each'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `find'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:32:in `handle'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:138:in `block in dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/foundation/exception_handler.rb:5:in `catching_standard_errors'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:130:in `dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:63:in `block in init'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:162:in `call_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:15:in `call_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:141:in `block (3 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `block (2 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `block in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `trigger_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:34:in `work'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
[2016-01-09 17:17:55.350] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Asterisk::AMI target_call_id=
"67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:17:5
5 +0000, name="HangupRequest", headers={"Privilege"=>"call,all", "Timestamp"=>"1452359875.334840", "Channel"=>"SIP/901-0000000f", "Uniqueid"=>"1452359809.15"}
>

On Saturday, 9 January 2016 17:36:16 UTC+1, Ben Langfeld wrote:
Show us the errors?

Enviado do meu iPhone

Em 9 Jan 2016, às 14:25, Andrius Kairiukstis <and...@<a href="http://kairiukstis.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fkairiukstis.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHa2HAcR11gZG6brbmpPSXzgqnAug&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fkairiukstis.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHa2HAcR11gZG6brbmpPSXzgqnAug&#39;;return true;">kairiukstis.com> escreveu:

Hello,

Routes is changed in version 3 and I am getting error about agi_context. How I could route calls based on Asterisk PBX context in version 3?
Code:

Adhearsion.router do
  route 'Calls from Asterisk context test-moh',    AsteriskMusic,  agi_context: 'test-moh'
  route 'Calls from Asterisk context test-digium', AsteriskDigium, agi_context: 'test-digium'
  route 'Calls from Asterisk context test-echo',   AsteriskEcho,   agi_context: 'test-echo'

  # Do not playback ringing indication
  unaccepting do
    route 'default', Default
  end
end


-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@<a href="http://googlegroups.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://googlegroups.com/&#39;;return true;" onclick="this.href=&#39;http://googlegroups.com/&#39;;return true;">googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" gdf-obfuscated-mailto="wIFPmdSDDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Routing in 3.0.0.rc1

Ben Langfeld
There is a feature branch of adhearsion-asterisk (feature/adhearsion-3), along with a bunch of other plugins which provides compatibility with Adhearsion 3.

On Jan 9, 2016, at 18:30, Andrius Kairiukstis <[hidden email]> wrote:

Thank you,

It were not new installation, I upgraded previous application. I were received conflict error due of adhearsion-asterisk and since I did not use it in project, removed it. Now I fixed gemfile and version and everything works

On Saturday, 9 January 2016 19:19:55 UTC+1, Ben Langfeld wrote:
This method is added by adhearsion-asterisk: https://github.com/adhearsion/adhearsion-asterisk/blob/develop/lib/adhearsion/asterisk/has_agi_context.rb

Do you have it loaded?

On Jan 9, 2016, at 14:42, Andrius Kairiukstis <and...@kairiukstis.com> wrote:

AHN> [2016-01-09 17:16:49.710] DEBUG Adhearsion::Call: @: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968",
 target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"asy
nc", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_c
allerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dni
d"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0
", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Offer target_call_id="67a5c88
7-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000,
 headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-ag
i_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_callingpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-a
gi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_context"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priorit
y"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"140244888909680"}, to="97212345678", from="901 <SIP/901>">
[2016-01-09 17:16:49.717] ERROR Adhearsion::Rayo::Initializer: <NoMethodError> undefined method `agi_context' for #<Adhearsion::Call:67a5c887-8008-4cd0-9ba7-f
ad077996968@ offer=#<Adhearsion::Event::Offer target_call_id="67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil,
domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:16:49 +0000, headers={"X-agi_request"=>"async", "X-agi_channel"=>"SIP/901-0000000f", "X-agi_language"
=>"en", "X-agi_type"=>"SIP", "X-agi_uniqueid"=>"1452359809.15", "X-agi_version"=>"11.17.1", "X-agi_callerid"=>"901", "X-agi_calleridname"=>"901", "X-agi_calli
ngpres"=>"0", "X-agi_callingani2"=>"0", "X-agi_callington"=>"0", "X-agi_callingtns"=>"0", "X-agi_dnid"=>"97212345678", "X-agi_rdnis"=>"unknown", "X-agi_contex
t"=>"x2one-default", "X-agi_extension"=>"97212345678", "X-agi_priority"=>"1", "X-agi_enhanced"=>"0.0", "X-agi_accountcode"=>"", "X-agi_threadid"=>"14024488890
9680"}, to="97212345678", from="901 <SIP/901>">, end_reason=nil, commands=[], variables={"x_agi_request"=>"async", "x_agi_channel"=>"SIP/901-0000000f", "x_agi
_language"=>"en", "x_agi_type"=>"SIP", "x_agi_uniqueid"=>"1452359809.15", "x_agi_version"=>"11.17.1", "x_agi_callerid"=>"901", "x_agi_calleridname"=>"901", "x
_agi_callingpres"=>"0", "x_agi_callingani2"=>"0", "x_agi_callington"=>"0", "x_agi_callingtns"=>"0", "x_agi_dnid"=>"97212345678", "x_agi_rdnis"=>"unknown", "x_
agi_context"=>"x2one-default", "x_agi_extension"=>"97212345678", "x_agi_priority"=>"1", "x_agi_enhanced"=>"0.0", "x_agi_accountcode"=>"", "x_agi_threadid"=>"1
40244888909680"}, controllers=[], to="97212345678", from="901 <SIP/901>">
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:30:in `check'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:24:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
        (celluloid):0:in `remote procedure call'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/call.rb:22:in `method_missing'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:206:in `block (2 levels) in guarded?'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `find'
       /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:205:in `block in guarded?'                                   [1528/8602]
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:194:in `guarded?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router/route.rb:25:in `match?'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `block in match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `each'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `find'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:28:in `match'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/router.rb:32:in `handle'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:138:in `block in dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/foundation/exception_handler.rb:5:in `catching_standard_errors'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:130:in `dispatch_offer'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/rayo/initializer.rb:63:in `block in init'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:162:in `call_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:15:in `call_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:141:in `block (3 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:136:in `block (2 levels) in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `each'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `find'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:134:in `block in trigger_handler'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `catch'
        /usr/local/bundle/gems/has-guarded-handlers-1.6.3/lib/has_guarded_handlers.rb:133:in `trigger_handler'
        /ahn/vendor/cache/adhearsion-6db768c46752/lib/adhearsion/events.rb:34:in `work'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
        /usr/local/bundle/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
[2016-01-09 17:17:55.350] DEBUG Adhearsion::Call: 67a5c887-8008-4cd0-9ba7-fad077996968@: Receiving message: #<Adhearsion::Event::Asterisk::AMI target_call_id=
"67a5c887-8008-4cd0-9ba7-fad077996968", target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sat, 09 Jan 2016 17:17:5
5 +0000, name="HangupRequest", headers={"Privilege"=>"call,all", "Timestamp"=>"1452359875.334840", "Channel"=>"SIP/901-0000000f", "Uniqueid"=>"1452359809.15"}
>

On Saturday, 9 January 2016 17:36:16 UTC+1, Ben Langfeld wrote:
Show us the errors?

Enviado do meu iPhone

Em 9 Jan 2016, às 14:25, Andrius Kairiukstis <and...@kairiukstis.com> escreveu:

Hello,

Routes is changed in version 3 and I am getting error about agi_context. How I could route calls based on Asterisk PBX context in version 3?
Code:

Adhearsion.router do
  route 'Calls from Asterisk context test-moh',    AsteriskMusic,  agi_context: 'test-moh'
  route 'Calls from Asterisk context test-digium', AsteriskDigium, agi_context: 'test-digium'
  route 'Calls from Asterisk context test-echo',   AsteriskEcho,   agi_context: 'test-echo'

  # Do not playback ringing indication
  unaccepting do
    route 'default', Default
  end
end


-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.