Simple Inbound System

Hello,

I’m trying to make a simple inbound system.
Customers will call from outside network from their phones.
They will call our number 4440123.
And we have 2 agents(1000 and 1001) waiting for calls.
I first just tried to forward the call to one of them.
But when I call 4440123 from my cellphone, I always get the following error:

Call ‘’ from extension to '4440123’rejected because extension not found

My sip.conf and extensions.conf is:

[inbound]
exten => 4440123,1,Answer()
exten => 4440123,n,Wait(1)
exten => 4440123,n,Dial(SIP/1000,5)

[1000]
type=friend
secret=1234
host=dynamic
dial=SIP/1000
context=inbound
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
nat=yes
qualify=yes

By the way 4440123 is a PRI number.
Thanks in advance.

there is not sufficient information provided to definitively solve this but likely problem is that inbound calls from the PRI are not going into the [inbound] context that your have established. there is a config file [the name depends what version of asterisk you are using] where the PRI configuration parameters are provided to asterisk, including the context into which calls from the PRI are placed. for example in asterisk 1.4.x there is a file /etc/asterisk/zapata.conf that will have a line somewhere like:

context=from-pstn <============ this needs to match the dial plan in extensions.conf

you need to make sure this matches your segment in extensions.conf:

[inbound] <=================== change to match above ====> [from-pstn]
exten => 4440123,1,Answer()
exten => 4440123,n,Wait(1)
exten => 4440123,n,Dial(SIP/1000,5)

Hi,

My Asterisk version is 1.4.29.1

And my PRI modem is Keymile LR SHDSL-2.

I checked but there is no file zapata.conf but there is chan_dahdi.conf file.
And in that file I did what you sad but I got still the same error.

Thanks in advance

[quote=“salimafsar”]My sip.conf and extensions.conf is:

[inbound]
exten => 4440123,1,Answer()
exten => 4440123,n,Wait(1)
exten => 4440123,n,Dial(SIP/1000,5)

[1000]
type=friend
secret=1234
host=dynamic
dial=SIP/1000
context=inbound
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
nat=yes
qualify=yes[/quote]
AFAIC, your context=inbound matches with your dialplan [inbound] context on your extensions.conf as shown above. The next thing is to find out how your asterisk tells your caller (VoSP) where the inbound calls need be delievered within your Asterisk PBX system. This is usually done with the register line on your sip.conf file (read this Asterisk: The Future of Telephony, 2nd Edition e-book on pp.100 to find out more). So, what does the register line on your sip.conf file pertaining the inbound trunk point to? If you don’t know what I am talking about, please post your complete sip.conf file that shows the register line.