@@ -57,15 +57,7 @@ class CustomerFwd
BANDWIDTH_VOICE.create_call(account, body: request).data.call_id
end
- def v2_safe?- false- end-
class Tel < CustomerFwd
- def v2_safe?- true- end-
def initialize(values)
super
raise "Bad tel format: #{uri}" unless uri.match?(/\Atel:\+1\d{10}\Z/)
@@ -77,20 +69,12 @@ class CustomerFwd
end
class SIP < CustomerFwd
- def v2_safe?- uri.end_with?(CONFIG[:sip][:realm])- end-
def to
uri
end
end
class XMPP < CustomerFwd
- def v2_safe?- true- end-
def to
jid = uri.sub(/^xmpp:/, "")
"sip:#{ERB::Util.url_encode(jid)}@sip.cheogram.com"