Skip to content

Commit

Permalink
workaround for tropo provision api bug which puts a 1 in front of ov …
Browse files Browse the repository at this point in the history
…uk number
  • Loading branch information
zlu committed Feb 17, 2011
1 parent c4f6e56 commit 17ed8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Expand Up @@ -42,7 +42,7 @@ def create_profile
ta = ENV["TROPO_APP"]
tp = TropoProvisioning.new(tu, tp)
address_data = tp.create_address(ta, { :type => 'number', :prefix => @prefix })
new_number = address_data.address.gsub("+", "")
new_number = address_data.address.gsub("+1", "")
profile = profiles.build(:voice => new_number,
:voice_token => OUTBOUND_TOKEN_VOICE,
:messaging_token => OUTBOUND_TOKEN_MESSAGING,
Expand Down

0 comments on commit 17ed8c9

Please sign in to comment.