Page tree
Skip to end of metadata
Go to start of metadata

Introduction

The Gigaset T500/T300 is based on asterisk and sometimes it is needed to change the incoming configuration of the SIP trunks, below are some examples how to change the dialplan.

Question

The incoming dialled number has extra "0" that needs to be removed.

 Click here for solution

The normal rule in the dialplan is:

exten => _.,3,Goto(Trunk-incoming-manuell,${EXTEN},1)

To remove the first digit you need to change the rule to:

exten => _.,3,Goto(Trunk-incoming-manuell,${EXTEN:1},1)

The ":1" removes the first digit, to remove the first 2 digits you need to change it to ":2"

Example:

  • Without change: 09742123456
  • With change: 9742123456

 

With the following change you can add numbers to the incoming dialled number:

 Click here for solution

The normal rule in the dialplan is:

exten => _.,3,Goto(Trunk-incoming-manuell,${EXTEN},1)

To remove the first digit you need to change the rule to:

exten => _.,3,Goto(Trunk-incoming-manuell,+49${EXTEN},1)

The "+49" adds the German country code to the incoming number.

Example:

  • Without change: 9742123456
  • With change: +499742123456

  • No labels