Asterisk TON Number

Home » Asterisk Users » Asterisk TON Number
Asterisk Users 12 Comments

Hi

Greeting to all you out there.

I am new at asterisk, I have been working with PLMN platforms telecommunication for 5 years with NSN and Huawei. We have recently built an asterisk PBX with Trixbox and connected it to our MSS using Digium E1 cards(ISDN). Everything went smoothly as there are tons of information out there, except for the TON number. If you have worked in Telecommunication you will know the importance of TON flexibility. All the posts online suggested to update under Chan_dahdi.conf:
pridialplan = international prilocaldialplan = international or other TON value ,restart the platform and then trixbox1*CLI> dialplan reload I have already done this with no success. Are there other changes I have to make in order to change dialplan?

Br

12 thoughts on - Asterisk TON Number

  • Afaik the Trixbox Community Edition is no longer developed. So unless you use a commercial Trixbox you are perhaps better off with just the latest stable Asterisk (asterisk 11.5.1 or 11.6.0-rc1, dahdi 2.7.0.1, libpri 1.4.14, libss7 1.0.2) or if you need a GUI have a look at Elastix, the FreePBX distro, etc.

    Regards, Patrick

  • Hi Patrick,

    If I use latest stable asterisk will I be able to change dialplan by changing pridialplan in chan_dahdi.conf?

    Br

    —–Original Message—

  • If you change something in chan_dahdi.conf, ‘dialplan reload’ wont help. You need to reload chan_dahdi. I ‘m not quite sure if ‘module reload chan_dahdi’ reloads the TON settings. But you should be save by: module unload chan_dahdi.so and module load chan_dahdi.so which completly unloads and loads chan_dahdi.

    Regards

    Hans

  • aWYgeW91IGFyZSBhIHNlcmlvdXMgdGVsZWNvIGd1eSwgd2hpY2ggaXQgc2VlbXMgeW91IGFyZS4g eW91IG1pZ2h0IGNvbnNpZGVyIGR1bXBpbmcgdHJpeGJveCBpbiB0aGUgbmVhciBmdXR1cmUuIHdo aWxlIHRyaXhib3ggZG9lcyBwcm92aWRlIGEgZ29vZCBlbnRyeSBsZXZlbCBpbnRvIHRoZSAqIHdv cmxkLCB0aGVyZSBhcmUgbGltaXRhdGlvbnMgdGhhdCB3aWxsIGV2ZW50dWFsbHkgaG9sZCB5b3Ug YmFjayBmcm9tIGVuam95aW5nIHRoZSBmdWxsIGJyZWFkdGggb2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SBFMSBjYXJkcyhJU0ROKS4gRXZlcnl0aGluZyB3ZW50IHNtb290
    aGx5IGFzIHRoZXJlIGFyZSB0b25zIG9mIGluZm9ybWF0aW9uIG91dCB0aGVyZSwgZXhjZXB0IGZv ciB0aGUgVE9OIG51bWJlci4NCklmIHlvdSBoYXZlIHdvcmtlZCBpbiBUZWxlY29tbXVuaWNhdGlv biB5b3Ugd2lsbCBrbm93IHRoZSBpbXBvcnRhbmNlIG9mIFRPTiBmbGV4aWJpbGl0eS4NCkFsbCB0
    aGUgcG9zdHMgb25saW5lIHN1Z2dlc3RlZCB0byB1cGRhdGUgdW5kZXIgQ2hhbl9kYWhkaS5jb25m Og0KcHJpZGlhbHBsYW4gPSBpbnRlcm5hdGlvbmFsDQpwcmlsb2NhbGRpYWxwbGFuID0gaW50ZXJu YXRpb25hbA0Kb3Igb3RoZXIgVE9OIHZhbHVlICxyZXN0YXJ0IHRoZSBwbGF0Zm9ybSBhbmQgdGhl biB0cml4Ym94MSpDTEk+IGRpYWxwbGFuIHJlbG9hZA0KSSBoYXZlIGFscmVhZHkgZG9uZSB0aGlz IHdpdGggbm8gc3VjY2Vzcy4gQXJlIHRoZXJlIG90aGVyIGNoYW5nZXMgSSBoYXZlIHRvIG1ha2Ug aW4gb3JkZXIgdG8gY2hhbmdlIGRpYWxwbGFuPw0KDQoNCkJyDQoNCg0KU28gd2hhdCBhcmUgeW91
    IHRyeWluZyB0byBkbyBzcGVjaWZpY2FsbHk/DQoNClRoYW5rcywNClN0ZXZlIFRvdGFybw0K

  • I asked you before. What exactly are you trying to do that you cannot? It helps to be fairly detailed when asking a question to the list. Include error messages if you have any.

    The dialplan and your ISDN configs are different things. It sounds like maybe you are having issues with with your dailplan and pattern matching. You can probably do all of that from the Trixbox GUI. If you like Trixbox, check out FreePBX since Trixbox is done.

    Thanks, Steve Totaro

  • chan_dahdi.conf.sample, included in the Asterisk source code, suggests pridialplan=unknown. The CALLERID() functions has a couple of options for setting “num plan”, but the options are not well documented.

    ; PRI Dialplan: The ISDN-level Type Of Number (TON) or numbering plan, used for
    ; the dialed number. Leaving this as ‘unknown’ (the default) works for most
    ; cases. In some very unusual circumstances, you may need to set this to
    ; ‘dynamic’ or ‘redundant’.
    ;
    ; unknown: Unknown
    ; private: Private ISDN
    ; local: Local ISDN
    ; national: National ISDN
    ; international: International ISDN
    ; dynamic: Dynamically selects the appropriate dialplan using the
    ; prefix settings.
    ; redundant: Same as dynamic, except that the underlying number is not
    ; changed (not common)

    —–Original Message—

  • Hi Steve,

    There are no errors I need to be able to change TON(below my PRI debug ) in international or subscriber. The change in chan_dahdi.conf did not do it

    Br

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Hi

    Greeting to all you out there.

    I am new at asterisk, I have been working with PLMN platforms telecommunication for 5 years with NSN and Huawei. We have recently built an asterisk PBX with Trixbox and connected it to our MSS using Digium E1 cards(ISDN). Everything went smoothly as there are tons of information out there, except for the TON number. If you have worked in Telecommunication you will know the importance of TON flexibility. All the posts online suggested to update under Chan_dahdi.conf:
    pridialplan = international prilocaldialplan = international or other TON value ,restart the platform and then trixbox1*CLI> dialplan reload I have already done this with no success. Are there other changes I have to make in order to change dialplan?

    Br

    So what are you trying to do specifically?

    Thanks, Steve Totaro

  • So you are using QSIG and connecting your Asterisk box to a legacy PBX over PRI E1?

    Did you try “unknown”?
    Do you need to use QSIG (over euroisdn for instance)?

    Thanks, Steve Totaro

  • The call is being placed, is it not? Again, I know you are trying to change the TON but what are you trying to accomplish and what is failing. It seems like you are dialing 1000 and that is being sent on the wire.

    Thanks, Steve Totaro