Flowroute Inbound DID not working

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Flowroute Inbound DID not working

Postby samhugs12 » Wed Apr 04, 2018 4:27 pm

I just set this up this vici and linked with my telco. Im trying to use the PBX features of setting a DID to ring to a Hard or softphone. Basically assigning DIDs to Users.

This is what i have set.

[flowroute]
type=friend
secret=Jxxx
username=xxx
host=sip.flowroute.com
dtmfmode=inband
rfc2833compensate=yes
context=inbound
canreinvite=no
allow=ulaw
allow=g729
insecure=port,invite
fromdomain=sip.flowroute.com

dial plan
exten => _1NXXXXXXXXX,1,Dial(SIP/${EXTEN}@flowroute)
Send NANPA (USA) as 11 digit
exten => _011.,1,Dial(SIP/${EXTEN:3}@flowroute)
dialing format - SIP/{countrycode}{number}@flowroute

I pretty much copied and pasted these settings from flowroute and it worked off rip.
Now I Did create a DID and set to ring to extension. When i make the call this is what i get on asterisks end

NOTICE[2498][C-00000001]: chan_sip.c:26002 handle_request_invite: Call from '38901607' (216.115.xx.144:5060) to extension '1888xxxxxx' rejected because extension not found in context 'inbound'.



Can you please advise?

Thank you
samhugs12
 
Posts: 3
Joined: Wed Apr 04, 2018 2:39 pm

Re: Flowroute Inbound DID not working

Postby uselessinfoguru » Thu Apr 05, 2018 12:55 pm

under your carrier settings add
Code: Select all
fromuser=1##########(your DID number)


also, when you set up the DID, did you include the 1 in front of the number?
VERSION: 2.14-736a | BUILD: 200204-2336| Cluster Setup
uselessinfoguru
 
Posts: 74
Joined: Tue Jul 25, 2017 10:27 pm

Re: Flowroute Inbound DID not working

Postby samhugs12 » Thu Apr 05, 2018 5:37 pm

Update:

I was able to get around the error message "NOTICE[2498][C-00000001]: chan_sip.c:26002 handle_request_invite: Call from '38901607' (216.115.xx.144:5060) to extension '1888xxxxxx' rejected because extension not found in context 'inbound'."


I had to update server settings for my carrier settings to save and context=trunkinbound was changed. Thanks to poundteam for helping me out with that!

AND UPDATE SERVER settings

I deleted everything and started over. Major KEY

INBOUNDS WORKS! as well as outbound. On outbound calls I must dial a 1 for it to go through. Is there anyway to change that?
samhugs12
 
Posts: 3
Joined: Wed Apr 04, 2018 2:39 pm

Re: Flowroute Inbound DID not working

Postby williamconley » Thu Apr 05, 2018 6:01 pm

Outbound calls can have "multiple pathways".

In your dialplan entry, you should have a "dial 9 carrier" (which allows "9" in the Dial Prefix field of the campaign, thus allowing "8", "7", etc for other carriers!). But you're not limited to that. You can set up one of the carriers to also accept 1+10 digits, and 10 digits (and add the one for you, cuz the carrier will need it). Thusly:

Code: Select all
exten =>_91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_91NXXNXXXXXX,n,Dial(${OUTBOUNDTRUNK9}/${EXTEN:1},,tTor)
exten =>_91NXXNXXXXXX,n,Hangup

exten =>_1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_1NXXNXXXXXX,n,Dial(${OUTBOUNDTRUNK9}/${EXTEN},,tTor)
exten =>_1NXXNXXXXXX,n,Hangup

exten =>_NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_NXXNXXXXXX,n,Dial(${OUTBOUNDTRUNK9}/1${EXTEN},,tTor)
exten =>_NXXNXXXXXX,n,Hangup


Notes round 1:
* ${OUTBOUNDTRUNK9} is a global variable defined in the "Globals String" field. You can skip that if you want and just put in "SIP/Account" replacing "Account" with your SIP context name. Many do. Resulting in "SIP/Account/${EXTEN:1}"
* EXTEN:1 the ":1" removes the first digit. In this case the "9". The carrier doesn't need the 9, it was only used to select the carrier. It's done it's job and can now be discard.
* EXTEN (Without the :1) in the second entry: Because there's no 9, no need to discard one.
* 1${EXTEN} in the third entry: Adds a 1 before the extension being dialed. So "3522690000" becomes "13522690000" which is required by most carriers denoting domestic long distance.

All three of these will actually result in "13522690000" at the chosen carrier, so the carrier will connect the call. But: 913522690000 and 13522690000 and 3522690000 are all acceptable numbers to this system. And you can still use "813522690000" for a different carrier entirely without changing any of this.

Notes round 2:

* Do not duplicate the _1NXXNXXXXXX extension in any other carrier entries. There can never be two carriers with the same dialplan. Same goes for _NXXNXXXXXX.
* If you decide to change your 1+10 and 10 digit dialing to a different carrier, technically all you need to do is change the "SIP/Account" value to the new sip account. But it's a good idea to also move the dialplan lines to the other carrier's entry to avoid confusion.

You should also have an "s" extension to cover "this is not a real number, kill the call".
Code: Select all
exten=> s,1,AGI(agi://127.0.0.1:4577/call_log)
exten=> s,n,NoOp(No Dial Pattern Matches This Extension)
exten=> s,n,Hangup

We like to put this in its own carrier entry. It only needs to appear once. This avoids "stuck" calls if you enter impossible phone numbers by accident. Those would otherwise lock up the server. EG: If you accidentally load a bunch of "0000000000" numbers from a fake calling list somewhere, or some broken number seep into a real list that only have 9 digits, this will kill those calls and toss a notice in the asterisk CLI instead of what normally happens ... which is that vicidial loses track of the calls because they never appear in the asterisk CLI.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 129 guests