Normalisation of number in dialplan

Good evening!

At the moment, my Asterisk supports dial in several formats. (_XXXXX - Local city, _XXXXXXX - Moscow, _X. - Russia and international calls.)
This is very convenient for users, but complicates the contexts.
For example, the uplink contexts has templates for all formats.

I want to write a handler that make normalization of the dialed number to the format ITU-T E.164. And next process the numbers in the one format.

To my surprise, the variable ${EXTEN} does not store rewritten value.

I think that I went the wrong way.

How correctly implement the normalizer of dialed number?

Ogogon.

EXTEN isn’t really a channel variable, it is special-cased, read-only, function that reads a value in the channel data structure.

You should use GoTo()

This is the wrong forum for support questions.

Sorry, I do not really understand how to use for this Goto().

I apologize. Where it is appropriate to ask such questions?

Ogogon.


A forum containing "Support" in its name.

(You will probably find it easier to use the n notation for priorites.)

A forum containing “Support” in its name.

(You will probably find it easier to use the n notation for priorites.)