Skip to main content

Stripping digits from incoming numbers

Posted by gb_delti on Wed, 04/27/2011

Hi,

one of our trunks adds a prefix to the extension to call, e.g. 12341200 instead of 1200. Is it possible to have that prefix removed before the call is sent for inbound route matching? The prefix only has to be removed from calls from one specific trunk.

If there is no GUI for that I'd resort to manipulating the extension directly inside extensions.conf, but maybe there is a better way.


Submitted by eeman on Wed, 04/27/2011 Permalink

user_extensions.conf

make your context, edit sip.conf to send incomming calls to that context insted... simple goto statement back to from-outside with your variable manipulation performed.