#58 ✓duplicate
Jason Goecke

UserEvent appears to corrupt event parsing

Reported by Jason Goecke | February 11th, 2009 @ 08:22 PM | in 0.8.5

If a user invokes the AGI command UserEvent (http://www.voip-info.org/wiki/vi... two things happen:

  1. The UserEvent never appears to be processed in events.rb
  2. The next calls that come in after the first call with UserEvent, no longer have any events

It would appear that the UserEvent is causing Ragel to lose itself and then it no longer processes events.

First call:


Second call:


Comments and changes to this ticket

  • Jason Goecke

    Jason Goecke February 11th, 2009 @ 08:28 PM

    It appears that if a UserEvent is sent like this:

    exten => _X.,1,UserEvent(EVENTHIS|billing=yes)

    This is when Ragel gets confused. While on the other hand if you do something like:

    exten => _X.,1,UserEvent(LOGVARIABLES|invoice:yes)

    We then get the events in Adhearsion as follows:

    INFO event_logger: Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent: #<Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent:0x175f110 @headers={"invoice"=>"yes", "Privilege"=>"user,all", "UserEvent"=>"LOGVARIABLES"}, @name="UserEvent">

    Which corresponds to the AMI this way:

    Event: UserEvent Privilege: user,all UserEvent: LOGVARIABLES invoice:yes

    So, two things here:

    1. We need to ensure we document how to use custom events on the Wiki for Adhearsion to be done properly
    2. We need to ensure that the Ragel parsing is more robust so that it drops events not understood and moves on to the next one, as opposed to not parsing anything going forward
  • Jay Phillips

    Jay Phillips March 24th, 2009 @ 06:47 PM

    • State changed from “new” to “open”
  • Jay Phillips
  • Ben Klang

    Ben Klang August 7th, 2010 @ 01:57 PM

    • Assigned user changed from “Jay Phillips” to “Ben Klang”
    • Milestone order changed from “0” to “0”

    This is a duplicate of ticket #84.

  • Ben Klang

    Ben Klang August 7th, 2010 @ 02:02 PM

    • Milestone set to 0.8.5
    • State changed from “open” to “duplicate”
    • Milestone order changed from “2999” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Referenced by