Incoming and Outgoing DID with Asterisk IPPBX.

I have an E1 line connected to my Asterisk Server running FreePBX as the management interface. Everything works fine except that I keep getting the pilot number when users make outbound calls.

I have 30 different DID lines (e.g 1234400 as the pilot and 1234401, 1234402, ... 1234429 as each DID) on the E1 and needs to assign each DID to and extension. I have successfully assigned each DID for incoming calls (using inbound route on the web interface and its worked great), but I keep getting the pilot numbers (1234400) when making call from those extensions with the different DID.

My Provider keep saying they've split each DID under the E1 and nothing else can be done from their end, and that, i should resolve it from my Dialplan. How do I configure my dialplan to show up each DID for each extension as needed.

I use Asterisk 1.4.20 with a Sangoma A102D (with echo cancellation on board)

Cheers to All.

KayuzeAsked:
Who is Participating?
 
KayuzeAuthor Commented:
I have it resolved by adding the state code to the DID number while configuring the outbound CID in FreePBX. e.g if DID for a person is 1234401 as explained above, then the oubound CID will be (state code) + 1234401. So if so instance the state code is 5, then the oubound CID will be 51234401. Please Note that, you need to ask your provider if state code is being passed or expected like in my case.

Cheers to all
0
 
brian_chamberlainCommented:
Are you setting the callerid in each extension to the id of the DDI?
0
 
KayuzeAuthor Commented:
Yes, am doing that. But still its not showing the CallerID when outgoing calls are made from the extensions.  or maybe am not setting something correctly or properly. Where else aside from the extension parameter page for each extension do I set the CallerID?
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
brian_chamberlainCommented:
I would talk to Sangoma at this point..
0
 
KayuzeAuthor Commented:
Like I said, setting incoming CallerID works perfect from the incoming route page. When I set for instance 1234401 as the DID and set the extension to the owner of the direct line below on that same page, incoming calls to the DID gets connected the extension. which is fine, but calling out from that same extensions will never show the number 1234401, instead it will always the pilot number which is 1234400 as explained above.

I have tried the scenerio I just explained on several extensions on the same box, but will not resolve.

0
 
rujoolahCommented:
Hey Kayuze can you help me setting incoming call rules? we also PRI E1 and want to map diffrent DIDs to Diffrent Extension for direct dialing or for fax as needed but im not able to do so.
as you have successfully done it please help.  im using asterisk 1.4.22 and Asterisk-GUI 2.0.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.