Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect event translation for FreeSwitch Ringing #146

Closed
dwilkie opened this issue May 8, 2013 · 1 comment
Closed

Incorrect event translation for FreeSwitch Ringing #146

dwilkie opened this issue May 8, 2013 · 1 comment

Comments

@dwilkie
Copy link

dwilkie commented May 8, 2013

According to the Rayo spec here:
http://xmpp.org/extensions/inbox/rayo.html#def-ringing the ringing event is "Indication that an outbound call has begun ringing, or accepted by the remote party."

In the FreeSwitch translator this is translated here https://github.com/adhearsion/punchblock/blob/develop/lib/punchblock/translator/freeswitch/call.rb#L74 as register_handler :es, :event_name => 'CHANNEL_STATE', [:[], :channel_call_state] => 'RINGING'

However this guard does not specify the call_direction being outbound so it is triggered on an incoming dial.

Furthermore for and outbound call the CHANNEL_STATE event does not give a channel_call_state of RINGING

This event translation definitely needs to have a guard on call_direction => outbound to comply with the spec, but I believe it also needs to have a guard on channel_call_state => EARLY as well.

See also this gist for the events triggered when an outbound dial is performed:
https://gist.github.com/dwilkie/5530574

@benlangfeld
Copy link
Member

Closing this following the logic in #201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants