Changing provider on Asterisk

Hello,

I’m new in asterisk, I have an installd Asterisk server with provider settings for our company , we have 10 external lines passing true the internet like 02 XXX XXXX but we have 15 people working and we need to have internal numbers like 111, 112 etc… I have added the lines in SIP.CONF :


[niki]
type=friend
username=niki
secret=niki
host=dynamic
context=office
allow=all

[toli]
type=friend
username=toli
secret=toli
host=dynamic
context=office
allow=all

The users are able to register I tried with a Sip Soft Phone X-lite, but they cannot call or receive calls…

The provider witch sold us the Server and have configured the system to use dose numbers only,

How can I configure the user Toli to have internal number 102 for Ex ?
and that he can call all the numbers as 00 and 0 prefixes by specified provider as VoipCheap for ex…

Thanks for your help

Kind regards

Toli

What do you have in extensions.conf ? That is where all the magic happens.

Thank you for your replay,

[code]
[general]
static=yes
writeprotect=no
autofallthrough=no
clearglobalvars=no
priorityjumping=no

[globals]
#include “alinea/constants.alinea”

[default]
#include “alinea/incomming.alinea”

[office]
#include “alinea/office.alinea”[/code]

and in the constants.alineia the file is empty

The file incoming.alinea:

exten => _0248930[345]X,1,Dial(SIP/${EXTEN:5},60,tT)
exten => _0248930[345]X,n,HangUp

In the office.alinea there is:

exten => _XXXXX.,1,DIAL(SIP/${EXTEN}@spnet,60) exten => _XXXXX.,n,Hangup() ^M ; Simulate incomming call^M exten => *,1,Goto(default,s,1)^M

Regards
Toli