VERSION: 2.10-452a
BUILD: 141111-0554
Asterisk:
VERSION: 1.8.32.3-vici
So I followed the manual to set up an inbound campaign, however I can't get any calls to route to the IN-GROUP,
My carrier is flowroute and here's the dial-plan:
Global: TRUNK9=SIP/flowroute
exten =>_1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_1NXXNXXXXXX,2,Dial(${TRUNK9}/(tech-prefix)*${EXTEN:1}@flowroute,,tTor)
exten =>_1NXXNXXXXXX,3,Hangup
The DID Flowroute has given me... we'll say is 17165551234
When I call the number, here's what the asterisk CLI outputs (I've placed the areas where I've replaced personal information in between < and >):
- Code: Select all
1 == Using SIP RTP CoS mark 5
2 -- Executing [17165551234@default:1] AGI("SIP/flowroute-00000008", "agi://127.0.0.1:4577/call_log") in new stack
3 -- <SIP/flowroute-00000008>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
4 -- Executing [17165551234@default:2] Dial("SIP/flowroute-00000008", "SIP/flowroute/<tech-prefix>*7165551234@flowroute,,tTor") in new stack
5 == Using SIP RTP CoS mark 5
6 -- Called SIP/flowroute/<tech-prefix>*7165551234@flowroute
7 -- Got SIP response 416 "Unsupported URI Scheme in Request URI" back from <flowrouteIP>
8 == Everyone is busy/congested at this time (1:0/0/1)
9 -- Executing [17165551234@default:3] Hangup("SIP/flowroute-00000008", "") in new stack
10 == Spawn extension (default, 17165551234, 3) exited non-zero on 'SIP/flowroute-00000008'
11 -- Executing [h@default:1] AGI("SIP/flowroute-00000008", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----127-----CHANUNAVAIL----------") in new stack
12 -- <SIP/flowroute-00000008>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----127-----CHANUNAVAIL---------- completed, returning 0
It looks like it's saying there are no agents available on line 8 (even though there are) but I think that's a red herring and the real issue is happening on lines 4 and 6 which is causing the 416 response on line 7
Flowroute requires the handshake be in E.164 format with the 1 prefixed to the Dial call and in lines 4 and 6 it is clearly not. Now I've tried editing my dial plan
like this: exten =>_1NXXNXXXXXX,2,Dial(${TRUNK9}/(tech-prefix)*${EXTEN}@flowroute,,tTor)
and this: exten =>_1NXXNXXXXXX,2,Dial(${TRUNK9}/(tech-prefix)*1${EXTEN:1}@flowroute,,tTor)
to no avail....
Please help
P.S. Dial plan works beautifully for outbound
EDIT: I'm now thinking the issue is that the DID is trying to use the default context instead of trunkinbound but I have no idea why that would be.