How to create a simple dial plan

I should have written it down when I had it working but I didn’t and wonder if someone can help me out.

I would like to have a dial plan in the U.S where I can have the choice of dialing 1 or just the area code and number for US and also have access to international calls. I must have a 1 in the dial string to call anywhere in the US.

I have it working for US using 1 or just the area code and the number by inserting 1+NXXNXXXXXX in the trunk dial rules. What happens is that when I want to dial internatioanal then the 1 is there.

I have made it work before and I will keep looking, meanwhile if someone has something like this and wishes to provide it I’ll appreciate it. I upgraded my system and this was one thing I did not make a copy of and I’m paying the price now.

Thanks.

I am trying to translate freePBX into Chinese by following this page from wiki here:
http://www.freepbx.org/trac/wiki/I18n
when I try to generate the amp.po I got warning:

config.php:329: warning: unterminated string literal
config.php:334: warning: unterminated string literal
config.php:343: warning: unterminated string literal
config.php:346: warning: unterminated string literal
config.php:355: warning: unterminated string literal
config.php:356: warning: unterminated string literal
footer.php:44: warning: unterminated string literal
footer.php:55: warning: unterminated string literal
page.modules.php:169: warning: unterminated character constant
page.modules.php:171: warning: unterminated character constant
page.modules.php:172: warning: unterminated character constant
page.modules.php:173: warning: unterminated character constant
page.modules.php:174: warning: unterminated character constant
page.modules.php:183: warning: unterminated character constant
page.modules.php:184: warning: unterminated character constant
page.modules.php:185: warning: unterminated character constant
page.modules.php:189: warning: unterminated character constant
page.modules.php:191: warning: unterminated character constant
page.modules.php:192: warning: unterminated character constant
page.modules.php:193: warning: unterminated character constant
page.modules.php:194: warning: unterminated character constant

Also, the amp.po is only 11K with 584 lines and it contain very limited words definations, most related with module admin. (/i18n/it_IT/LC_MESSAGES/amp.po has 4324 lines)
Is this i18n broken? Or maybe I am doing something wrong?

Please advice. Thanks.

just use two outbound routes that use the same trunk, put all your dial rules in the outbound routes and not in the trunk.

I realize that Dial Rules on a trunk are different from Dial Patterns on outbound routers.

However how can I take a Dial Rule I use on one trunk and apply it to all trunks in the sequence on a particular route?

ie

1503+NXXXXXX (allows 7 digit dialing and inserts local area code)
1+NXXNXXXXXX (allows 10 digit dialing and inserts local area code)

Thank you

KieranMullen