Hi,
I’ve been struggling with this issue for about a week now, and although going through this forum and general Googling has come up with lots of things for me to try, none of them have worked for me.
I like to think that my setup it pretty basic:
I installed from the 64bit stable-6.12.65 distro
Asterisk 11.19.0
FreePBX 12.0.76.2
I have one SIP trunk to my provider that has given us a number of DDIs
one ending in 500, a range ending 410-419 and a couple of other singular ones that we may use in the future.
Right now I’m just trying to get some of the 41X range working
PEER details:
username=4420*****500
type=peer
trustrpid=no
sendrpid=yes
secret=*******
qualify=yes
nat=yes
keepalive=45
insecure=port,invite
host=proxy.************m
dtmfmode=rfc2833
disallow=all
directmedia=no
context=from-trunk
allow=alaw
USER Context and Details are empty
Register String:
4420500:****@proxy.****m/4420500
I put the /4420*****500 at the end after reading a suggestion saying that it might help with picking up DDIs in incoming calls. It didn’t brake anything, but it didn’t move me any closer to my goal either. Before it used to just be USERNAME:PASSWORD@HOST
There are 3 incoming routes on the system
A default catch all of any DID / any CID, which I think was there as part of the installation anyway
One for the 020500, which is also the account’s main number anyway
and one for 020412, which I’m testing with
I’ve managed to ascertain that the 500 route is handling all the incoming calls, regardless of what DDI is used.
I though it was the catch all any any route, but I’ve specifically tested for this, and it’s definitely the 500 route. When I switch the destination for calls in this route, they all follow the changes, no matter which number I’m calling in to.
It’s got a DDI (DID Number) value of 4420*****500, because that’s how our provider formats the numbers.
I did a packet capture of an incoming call to the 412 DDI and I can see the right DDI number in the To: User Part, highlighted in blue
But the main 500 number is in the Request-URI User Part, highlighted in red
I have no idea what the X-DNQ bit in green is.
Is it possible that the Request-URI is being used instead of the To: value?
I’ve seen on 3CX systems (sorry, have I used a dirty word here? ) that one can choose which SIP fields can be used for things like DDI and CID. Is there something like that in FreePBX that I’ve just missed?
Thanks in advance for any help from anyone, I’d really appreciate anything that can get me going on this.
Regards,
Andrew