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
##Script | |
#Require the library for SOAP | |
require 'rubygems' | |
require 'yaml' | |
require 'soap/wsdlDriver' | |
require 'digest/md5' | |
require 'fastercsv' | |
#Load our configuration file |
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
>> this_begin_quarter = Time.now.at_beginning_of_quarter | |
=> Tue Jul 01 00:00:00 -0700 2008 | |
>> this_end_quarter = Time.now.at_end_of_quarter | |
=> Tue Sep 30 23:59:59 -0700 2008 | |
>> next_begin_quarter = 90.days.from_now.at_beginning_of_quarter | |
=> Wed Oct 01 00:00:00 -0700 2008 | |
>> next_end_quarter = 90.days.from_now.at_end_of_quarter | |
=> Wed Dec 31 23:59:59 -0800 2008 |
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
OpenGate70*CLI> | |
Reliably Transmitting (no NAT) to 89.1.250.111:5060: | |
INVITE sip:50005@89.1.250.111 SIP/2.0 | |
Via: SIP/2.0/UDP 89.1.250.89:5060;branch=z9hG4bK13fb87b4;rport | |
From: "Josh Sosebee" <sip:4000@89.1.250.111>;tag=as3cf874c9 | |
To: <sip:50005@89.1.250.111> | |
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
OpenGate70*CLI> | |
Reliably Transmitting (no NAT) to 89.1.250.111:5060: | |
INVITE sip:50005@89.1.250.111 SIP/2.0 | |
Via: SIP/2.0/UDP 89.1.250.89:5060;branch=z9hG4bK13fb87b4;rport | |
From: "Josh Sosebee" <sip:4000@89.1.250.111>;tag=as3cf874c9 | |
To: <sip:50005@89.1.250.111> | |
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
#Connect to the Sugar CRM WSDL and build our methods in Ruby | |
ws_proxy = SOAP::WSDLDriverFactory.new($config["wsdl_url"]).create_rpc_driver | |
ws_proxy.options["receive_timeout"] = 3600 |
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
#Connect to the Sugar CRM WSDL and build our methods in Ruby | |
ws_proxy = SOAP::WSDLDriverFactory.new($config["wsdl_url"]).create_rpc_driver | |
ws_proxy.streamhandler.client.receive_timeout = 3600 |
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
## Test scenarios | |
## 1 | |
exten => _25XXXX,1,SipAddHeader(P-Asserted-Identity: <sip:6788675309>) | |
exten => _25XXXX,n,Dial(SIP/${EXTEN:1}@avaya-out) | |
## 2 | |
exten => _25XXXX,1,SipAddHeader(p-asserted-identity: <sip:6788675309>) |
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
exten => 574804,1,SipAddHeader(P-Asserted-Identity: <sip: 4444@nacr.com>) | |
exten => 574804,n,Dial(SIP/${EXTEN:2}@nacr.com,,r) |
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
exten => 574804,1,SipAddHeader(P-Asserted-Identity: <sip:4155551212>) | |
exten => 574804,n,Dial(SIP/${EXTEN:2}@nacr.com,,r) |
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
mayluc:asserted-identity jsgoecke$ ahn start . | |
/opt/adhearsion/lib/adhearsion/initializer.rb:167:in `each_pair' | |
/opt/adhearsion/lib/adhearsion/initializer.rb:167:in `bootstrap_rc' | |
/opt/adhearsion/lib/adhearsion/initializer.rb:108:in `start' | |
/opt/adhearsion/lib/adhearsion/initializer.rb:70:in `start' | |
/opt/adhearsion/lib/adhearsion/cli.rb:70:in `start' | |
/opt/adhearsion/lib/adhearsion/cli.rb:18:in `send' | |
/opt/adhearsion/lib/adhearsion/cli.rb:18:in `execute!' | |
/opt/adhearsion/bin/ahn:28 |
OlderNewer