One way calling

Hi,

I have created three extensions in asterisk and I am getting wierd behavior. The outgoing calls are working from two of the extensions and the incoming calls are working for only one of these three extensions. The results are the following:

  • Incoming calls to 6001 from 6002 and 6003 are working
  • Outgoing calls from 6001 to the other two are not working.
  • Outgoing calls from 6003 to 6001 are working
  • Outgoing calls from 6003 to 6002 are not working

The version number for my asterisk system is the following:
Connected to Asterisk 11.7.0~dfsg-1ubuntu1 currently running on pbx

I am putting my extensions.conf and sip.conf here. I have not changed anyother file or configuration in asterisk.


sip.conf

[simon]
type=friend
context=users
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw

[adil]
type=friend
context=users
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw

[john]
type=friend
context=users
host=dynamic
secret=unsecurepassword
disallow=all
allow=ulaw


extensions.conf

[users]
exten=>6001,1,Dial(SIP/adil,20)
exten=>6002,2,Dial(SIP/simon,20)
exten=>6003,2,Dial(SIP/john,20)


Kindly suggest what I should do. I have tried sip dialplan reload, sip reload and asterisk service restart also but did not make a difference

Provide the log entries that indicate it is not working, together with a description of what you mean by “not working”.

Calling from 6001 (adil) to 6002 (simon)

[Dec 3 09:23:41] NOTICE[2342][C-00000003]: chan_sip.c:25450 handle_request_invite: Call from ‘adil’ (10.40.207.182:5060) to extension ‘6002’ rejected because extension not found in context ‘users’.
== Using SIP RTP CoS mark 5

Calling from 6001 (adil) to 6003 (john)
[Dec 3 09:24:04] NOTICE[2342][C-00000004]: chan_sip.c:25450 handle_request_invite: Call from ‘adil’ (10.40.207.182:5060) to extension ‘6003’ rejected because extension not found in context ‘users’.

There is no priority one line for 6002 (or 6003).

Can you please suggest the changes that need to be done. I have not specified the priority for any of them so I assumed all of them will take some priority but perhaps it is a wrong assumption

You have specified the priority for all of them. This is very basic Asterisk dialplan stuff, for which you should read the documentation.

You are right, I changed the priority now. Thanks for the tip :smile: