Skip to content

Commit

Permalink
Now Asterisk communication working again
Browse files Browse the repository at this point in the history
  • Loading branch information
Emiliano Della Casa committed Nov 11, 2013
1 parent 870a157 commit 49a875a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/ruby-asterisk/request.rb
Expand Up @@ -10,11 +10,11 @@ def initialize(action,parameters={})
end

def commands
_commands=['Action: #{self.action}\r\n','ActionID: #{self.action_id}\r\n']
_commands=["Action: #{self.action}\r\n","ActionID: #{self.action_id}\r\n"]
self.parameters.each do |key,value|
_commands<<key+': #{value}\r\n' unless value.nil?
_commands<<key+": #{value}\r\n" unless value.nil?
end
_commands[_commands.length-1]<<'\r\n'
_commands[_commands.length-1]<<"\r\n"
_commands
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby-asterisk/response_parser.rb
Expand Up @@ -11,7 +11,7 @@ def self.parse(raw_response, type)
if PARSE_DATA.include?(type)
self._parse_objects(raw_response, PARSE_DATA[type])
else
self.raw_response
raw_response
end
end

Expand Down

0 comments on commit 49a875a

Please sign in to comment.