Hi Everyone,
I've completely ran out of ideas, and I need some help!
I'm trying to originate a call using ecallmgr through AMQP to a 3rd party SIP provider (e.g. Twilio). This works when calling soft phones connected to my local Kazoo instance, but when I try to use the realm associated with the outbound SIP provider, I get the error "DESTINATION_OUT_OF_ORDER". I've spent quite a few hours researching and troubleshooting, and I'm not sure what to do from here. Does anyone know how to originate a call through ecallmgr to an external SIP provider?
Thanks for the help!!
Casey
Here are the details:
I ran this line to setup my offnet location in couchdb: sup whapps_maintenance migrate
{
"_id": "b4703e63ecbf6d55e1e056c6274210ab",
"_rev": "6-fba8c05e85c4eba640c8ecf3408c2ea2",
"pvt_type": "resource",
"name": "Twilio",
"enabled": true,
"flags": [
],
"weight_cost": 30,
"rules": [
"^\\+1(\\d{10})$"
],
"gateways": [
{
"username": "<redacted>",
"password": "<redacted>"
"prefix": "+",
"suffix": "",
"codecs": [
"G729",
"PCMU",
"PCMA"
],
"progress_timeout": "30",
"enabled": true
}
],
"grace_period": 5,
"formatters": {
"request": [
{
"regex": "^\\+?1?\\d{6}(\\d{4})$",
"prefix": "",
"suffix": ""
}
]
}
}
When I send an AMQP packet, I get this error response:
{
"Call-ID": "b3d3eb08-00ad-11e4-b0e0-3d8d7aaa3173",
"Request": {
"Custom-Channel-Vars": {},
"Endpoints": [
{
"Ignore-Completed-Elsewhere": "true",
"SIP-Headers": {},
"Codecs": [
"G729",
"PCMU",
"PCMA"
],
"Endpoint-Timeout": 30,
"Outbound-Caller-ID-Name": "CallMeMaybe",
"Outbound-Caller-ID-Number": "42",
}
],
"Application-Name": "park",
"Originate-Immediate": true,
"Event-Category": "resource",
"Event-Name": "originate_req",
"Continue-On-Fail": false,
"SIP-Headers": {},
"App-Version": "0.0.1",
"App-Name": "CallMeMaybe",
"Msg-ID": "ddb9e505-cf91-41ee-92be-87c648477830",
"Server-ID": "CallMeMaybe_ReceiveQueue_ecd87ecd-49cf-4c47-95de-fd9bfe8ccd49"
},
"Error-Message": "DESTINATION_OUT_OF_ORDER\n",
"Server-ID": "",
"Msg-ID": "ddb9e505-cf91-41ee-92be-87c648477830",
"App-Version": "0.8.0",
"App-Name": "ecallmgr",
"Event-Name": "originate_resp",
"Event-Category": "error"
}
At the same time, FS_CLI reports:
2014-06-30 23:24:37.379069 [DEBUG] kazoo_event_stream.c:459 Adding event binding b3cd185a-00ad-11e4-b0df-3d8d7aaa3173 to stream 0x7fcf54010d00 for
ecal...@testkazoo.2600hz.org <2.1541.0>: CUSTOM loopback::bowout
2014-06-30 23:24:37.418510 [INFO] kazoo_node.c:627 exec: create_uuid( )
2014-06-30 23:24:37.438561 [INFO] kazoo_node.c:627 exec: create_uuid( )
2014-06-30 23:24:37.458746 [INFO] kazoo_node.c:627 exec: originate({ecallmgr_Fetch-ID='b701fa5fe0220d4fa4cc83d7df47d176',ecallmgr_Ecallmgr-Node='
ecal...@testkazoo.2600hz.org',continue_on_fail='false',loopback_bowout_on_execute='true',local_var_clobber='true'} &park())
2014-06-30 23:24:37.458746 [DEBUG] switch_ivr_originate.c:2061 Parsing global variables
2014-06-30 23:24:37.458746 [DEBUG] switch_event.c:1661 Parsing variable [ecallmgr_Fetch-ID]=[b701fa5fe0220d4fa4cc83d7df47d176]
2014-06-30 23:24:37.458746 [DEBUG] switch_event.c:1661 Parsing variable [continue_on_fail]=[false]
2014-06-30 23:24:37.458746 [DEBUG] switch_event.c:1661 Parsing variable [loopback_bowout_on_execute]=[true]
2014-06-30 23:24:37.458746 [DEBUG] switch_event.c:1661 Parsing variable [local_var_clobber]=[true]
2014-06-30 23:24:37.458746 [WARNING] switch_ivr_originate.c:2080 No origination URL specified!
2014-06-30 23:24:37.458746 [DEBUG] switch_ivr_originate.c:3639 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]
2014-06-30 23:24:37.879514 [DEBUG] kazoo_event_stream.c:235 Shutting down erlang event stream 0x7fcf54010d00
2014-06-30 23:24:37.879514 [NOTICE] switch_event.c:2073 Event Binding deleted for b3cd185a-00ad-11e4-b0df-3d8d7aaa3173:CUSTOM