Making ld calls

I am having troubles making long distance calls. When I make an attempt to call ld I get an error message that says "your call can not be completed as dialed..." I am able to make local calls without any problems. Any help that anyone has will be greatly appreciated.

This would seem to indicate that ld should work and local should not as

7 digit numbers would not match but 10 would,

please post the content of the "Dial Patterns" box in the outbound route

and the content of the "Dial Rules" box in the trunk page

what dialing pattern does your voip provider require you to use, very few accept 7 digit dial strings as unless they only service one area code or the account was registered to a specific area code, how would they know what area code you where dialling from?

you could perhaps troubleshoot by putting just . (a period) in both boxes, this matches anything, and you can find out what works and what doesn't by dialing various strings and see what works and what doesn't work. For example 12125551212, 2125551212, 2461234 etc. you'll have to wait for timeout or finish the dial with a # before anything happens.

1) Dialplans in Outbound routes choose which trunk they will use based on your selection

2) Dialplans in the Trunks themselves are only used if you have to manipulate the number entered at the extension to save the user having to remember (e.g. your Voice Provider needs the area extension added even for local calls). Otherwise on 90% the dialplans in the trunks remain empty.

3) Dialplans in Phones mainly assist recognising when a phone number is complete or not correct as the case may be, so that they are not waiting for 4 sec or 10 sec timeout. Many people with IP phones know to press the send key or # key for immediate dialling. Dialplans in phones can also perform some of functions that you may perform in Trunk Dialplans. However it is normally good practice to keep the phones simple and have these functions performed in a central place such as the Elastix server trunks.

As I suspect, you may have a handle on the masks and how they are used, so my suspicion is that the default dialplan (assuming you have no modified the phone dialplan) in the phone is causing your issue with the Long Distance calls.

Your dialplan in the phone may be dropping off or adding a digit which naturally Elastix/Asterisk cannot match and has no outbound route for.

Easiest way to confirm this is to look at /var/log/asterisk/full and see what the digits Elastix receives and also what it tries to dial. Or you can watch the Asterisk CLI (via the console or via Putty/SSH) and look at it this way.

Can you tell us what IP phones you are using. Maybe post some logs on the phone call process from the CLI.

what does the context [s@macro-dialout-trunk:20] and following, show for a successful local call?

amd from another post:-
> Oh, and I have the peer and user details for my local calls set up the same as my long distance.

my thinking:
do you also have a sip trunk called "local"?",
are these perhaps with the same carrier,?

do you try and register on both of these trunks with the same authentification?

what does sip show registry return?

(you should only register with a carrier once, the outbound routes can all end up on that one trunk, Registration is usually only needed for inbound calls, the outbound calls use the authentification in the trunk setup but two bi-directional trunks with the same carrier is likely to confuse asterisk/freepbx)

Well I have some good news. I was wrong when I said that the peer details for both of my trunks are the same. My long distance trunk was type=user. I needed both of them to to be type=peer. I would like to thank both of your for your help. I look forward to working with you again.