This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:axis2="http://connectsm.ws.bwse.com/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://connectsm.ws.bwse.com/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax24="http://connectsm.model.api.bwse.com/xsd" xmlns:ax21="http://exception.api.bwse.com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://connectsm.ws.bwse.com/"> | |
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameTokenOverHTTPS"> | |
<wsp:ExactlyOne> | |
<wsp:All> | |
<sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sdas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page contentType="application/json; charset=UTF-8" %> | |
<%@ page import="java.io.*" %> | |
<%@ page import="java.util.*" %> | |
<%@ page import="java.lang.management.*" %> | |
<%@ page import="javax.management.*" %> | |
<% | |
MBeanServer server = ManagementFactory.getPlatformMBeanServer(); | |
final PrintWriter os = new PrintWriter(out); | |
MBeanInfo mbeanServer = server.getMBeanInfo(new ObjectName("com.micromethod.sipmethod:type=server.module.container.application,name=tropo")); | |
MBeanAttributeInfo[] attributes = mbeanServer.getAttributes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call 'tel:+14805551212' | |
starttime = Time.new | |
record ".", { | |
:beep => false, | |
:timeout => 10, | |
:silenceTimeout => 1, | |
:maxTime => 10 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call 'tel:+14805551212' | |
starttime = Time.new | |
log "starttime====> #{starttime}" | |
record ".", { | |
:beep => false, | |
:timeout => 10, | |
:silenceTimeout => 1, | |
:maxTime => 10 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call 'tel:+14805551212' | |
starttime = Time.new | |
log "starttime====> #{starttime}" | |
record ".", { | |
:beep => false, | |
:timeout => 10, | |
:silenceTimeout => 1, | |
:maxTime => 10 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starttime = nil | |
call 'tel:+14805551212', { | |
:onAnswer => lambda { starttime = Time.new } | |
} | |
log "starttime====> #{starttime}" | |
record ".", { | |
:beep => false, | |
:timeout => 10, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH.unshift(File.dirname(__FILE__)) | |
%w(cgi socket routing/helpers routing/config routing/romeo routing/inbound routing/token).each { |lib| require lib } | |
module TropoRouting | |
def self.test | |
puts "test" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2008 Chris Wanstrath | |
# Taken from defunkt's gist repository: http://github.com/defunkt/gist/tree/master | |
require 'open-uri' | |
require 'net/http' | |
require 'net/https' | |
module Gist | |
extend self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ccxml xmlns="http://www.w3.org/2002/09/ccxml" version="1.0"> | |
<var name="conn_id" expr="''"/> | |
<var name="statevar" expr="'state0'"/> | |
<script> | |
var Hints = new Object(); | |
Hints.headers = new Object(); | |
Hints.headers['FROM'] = event$.connection.protocol.sip.headers.From; | |
</script> | |
<eventprocessor statevariable="statevar"> |