Stuck with dialplan )

Hello everyone.
Got a problem when using AsteriskNow 2.0 with FreePBX on it)
All of the following operations made with FreePBX:

  1. I registered two sip users (sip extensions, in my case “6001” and “6002”) with context “from-internal”, which is default in freepbx - and everything went OK.
  2. I tried to register a new pair of users “90210” and “90211” with custom-named context (in my case “infocon”). And when I’m trying to call each another, I got my call rejected with this:

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
[2012-05-05 03:19:02] NOTICE[3643]: chan_sip.c:23016 handle_request_invite: Call from ‘90210’ ( to extension ‘90211’ rejected because extension not found in context ‘infocon’.

Here is output of “dialplan show infocon”:

[ Context ‘infocon’ created by ‘DIGIUM_PHONE_USERS’ ]
‘auto_hint_90210’ => hint: SIP/90210,CustomPresence:90210 [DIGIUM_PHONE_USERS]
‘auto_hint_90211’ => hint: SIP/90211,CustomPresence:90211 [DIGIUM_PHONE_USERS]

-= 2 extensions (2 priorities) in 1 context. =-

And here is one of “dialplan show from-internal”

[ Context ‘from-internal’ created by ‘pbx_config’ ]
‘auto_hint_6001’ => hint: SIP/6001,CustomPresence:6001 [DIGIUM_PHONE_USERS]
‘auto_hint_6002’ => hint: SIP/6002,CustomPresence:6002 [DIGIUM_PHONE_USERS]
Include => ‘from-internal-noxfer’ [pbx_config]
Include => ‘from-internal-xfer’ [pbx_config]
Include => ‘bad-number’ [pbx_config]

-= 2 extensions (2 priorities) in 1 context. =-

In the second case everything is OK.

Dialplan, etc. were reloaded. All the soft/modules is up-to-date.
Here comes the question - what am I doing wrong? Or what I should know (which manuals I need to read)?

Thank you.

How did you create these custom context’s? You can check if you did it correctly by using the ‘dialplan show’ command from Asterisk CLI. IE: ‘dialplan show [email protected]’ will check a specific context and digit pattern.

Created the context in “create sip extension” of FreePBX, there is a value named “context”, that is creating the dialplan (as it seems)

That field should only refer to custom code you have setup in extensions-custom.conf. You can’t just make up contexts.

Perhaps you should explain to us what you are trying to do with the contexts and we can point you in the right direction.

Thank you for the answer! )
I’m trying to separate one group of SIP users from another using the context.
By “separate” I mean to allow users in the one group dial each another and to deny the dialing them “from outside” of the group.
Sorry about these stupid questions - I’m very new to such type of systems like PBX.
According to the FreePBX description thought I should not touch even the *_custom.conf files, to avoid conflicts between the manually inserted settings and config generated by FreePBX gui.

p.s.: It was unclear for me, how Asterisk tells me about user that doesn’t belongs to the context, but shows it in the “dialplan show

The custom context files are for programmers, you don’t need to worry about that for your application.

Install the custom context module (I have only tested with version 2.9 but I have been told it works fine in 2.10). Create your rules and custom contexts. You can now use these contexts in the extensions to restrict dialing.


Thank you, Scott!)