How to use PBX with Asterisk server

Hi
I am using Asterisk server in which E1 card is installed for outbound calls. My provider had provided me 30 channels and 100 numbers. I have made my own extension numbers for the IP Phones, How can i use the numbers provided by the provider and map to my sip extensions.

There is a great book called “Asterisk: The Future of Telephony”. It will help you get on your way with Asterisk.

Search google and you will find many links to the PDF format of the book.

You can do it many ways.
One of them - look in conf files.
Other - make one AGI which will map dialed extension and IP numbers. You can use DB with AGI for mapping.
But - best - start with book which g2010 mentioned.

Hi Can you give me some more info.

I think you are asking this?

So if someone calls say 0712341234 (a number form your 100 range) you would like it to ring extension say 301.

HI

If your range is 01234123400 - 499

and you supplies says they are sending you for example 6 digits

you will recieve 123400 - 123499

Now your extensions are 4200-4299 then you have to translate the numbers
This is very simple

exten => _1234XX,1,Dial(SIP/42${EXTEN:4},120)

for example

Ian

[quote=“bwilks”]Hi Can you give me some more info.

I think you are asking this?

So if someone calls say 0712341234 (a number form your 100 range) you would like it to ring extension say 301.[/quote]

Yes, Exactly...  I want it viceversa also...

[quote=“ianplain”]HI

If your range is 01234123400 - 499

and you supplies says they are sending you for example 6 digits

you will recieve 123400 - 123499

Now your extensions are 4200-4299 then you have to translate the numbers
This is very simple

exten => _1234XX,1,Dial(SIP/42${EXTEN:4},120)

for example

Ian[/quote]

Yes, thank you… and if i call from one of the extension to outbound(mobile) then i want that particular number associated to that phone on the mobile.

Association of outgoing call could be done with CallerID - you can set CallerID either in phones, or in dialplan or in AGI