Jump to content

Recommended Posts

Posted

Hi,

We have a many services in our company, each one must display a different number in his outgoing calls. We use a Asterisk SIP server.

 

Our SIP provider asks us to make our Asterisk server send a prefix before the outgoing number.

 

for exemple, for a normal call from the extension 1200, the SIP server send the number 0033123456789.

we want to make it adding a prefix for calls from each extension, for exemple add 401 before for calls from 1200 and send 40133123456789.

 

Can you help please ?

 

Many thanks.

 

Regards.

Posted
I run Elastix which is Asterisk but a nicely put together bundle. If i wanted to do this i would edit my Trunk and i have a box outbound dial prefix. Do you have a trunk option somewhere in the web interface?
Posted
If you have freepbx on your asterisk box, there's an outbound CID value in the extensions - this would be one way of doing it, but would require the full number entered in each extension. If you have multiple extensions requiring the same prefix, you might have to do something more complex with extension contexts... but you'd be best posting on asterisk or freepbx forums for further advice in those situations.
Posted

Hi,

 

Thank you everyone for replying,

For the moment I can only use command line on my asterisk server there's no gui interface available.

I'll try to install it before, apply your recommandations and let you know.

 

Regards.

  • 1 month later...
Posted

Hello Everybody;

I solved my problem and I want to share the solution with you in case somebody have the same problem :

In my fileextensions.conf I had only :

exten => _0033.,1,Dial(SIP/mani/${EXTEN})

exten => _0033.,2,Hangup

So, only numbers which start with 0033 can be called, thus I added the

lines below to allow numbers which begin with 4 to be called:

 

 

exten => _4.,1,Dial(SIP/mani/${EXTEN})exten => _4.,2,Hangup

 

 

hoping that will help.

Regards.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...