Re: [asterisk-users] dialplan problem : not including context

2012-01-26 Thread Jonas Kellens
On 01/13/2012 06:58 PM, Administrator TOOTAI wrote: Le 13/01/2012 14:32, Jonas Kellens a écrit : On 01/13/2012 02:23 PM, Doug Lytle wrote: Jonas Kellens wrote: I have the following in dialplan : [TrunkAccounts] dialplan show TrunkAccounts Make sure the sort order is what you're

[asterisk-users] dialplan problem : not including context

2012-01-13 Thread Jonas Kellens
Hello, I have the following in dialplan : [TrunkAccounts] exten = 32380837,1,GoTo(01,32380837,1) exten = 32380838,1,GoTo(01,32380838,1) exten = 32380839,1,GoTo(01,32380839,1) [CheckOnNet] include = TrunkAccounts But when a call for 32380837 enters CheckOnNet, it is not found.

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Doug Lytle
Jonas Kellens wrote: I have the following in dialplan : [TrunkAccounts] dialplan show TrunkAccounts Make sure the sort order is what you're expecting. Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Jonas Kellens
On 01/13/2012 02:23 PM, Doug Lytle wrote: Jonas Kellens wrote: I have the following in dialplan : [TrunkAccounts] dialplan show TrunkAccounts Make sure the sort order is what you're expecting. Doug Hello, The order is correct for as far as I'm sure. [TrunkAccounts] exten =

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Andreas Sikkema
On 1/13/12 2:32 PM, Jonas Kellens wrote: So the context TrunkAccounts is not included. Do you know why ? Does reloading the dialplan (dialplan reload) give any useful output relating to these two contexts? -- Andreas Sikkema --

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Jonas Kellens
On 01/13/2012 02:37 PM, Andreas Sikkema wrote: On 1/13/12 2:32 PM, Jonas Kellens wrote: So the context TrunkAccounts is not included. Do you know why ? Does reloading the dialplan (dialplan reload) give any useful output relating to these two contexts? I include this context in 2 other

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Doug Lytle
Jonas Kellens wrote: Everything works fine when including context 'TrunkAccounts' in context 'PROVIDERin dialplan showPROVIDERin Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. --

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Jonas Kellens
On 01/13/2012 02:59 PM, Doug Lytle wrote: Jonas Kellens wrote: Everything works fine when including context 'TrunkAccounts' in context 'PROVIDERin dialplan showPROVIDERin Doug Meaning ? -- _ -- Bandwidth and Colocation

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Doug Lytle
Jonas Kellens wrote: Meaning ? Meaning I want to see the dialplan order of that context. I'm guessing that's your inbound context. With includes that also include sub-contexts. Usually, there is something ordered differently then expected. Also, what version of Asterisk? Doug -- Ben

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Jonas Kellens
On 01/13/2012 03:07 PM, Doug Lytle wrote: Jonas Kellens wrote: Meaning ? Meaning I want to see the dialplan order of that context. I'm guessing that's your inbound context. With includes that also include sub-contexts. Usually, there is something ordered differently then expected.

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Doug Lytle
Jonas Kellens wrote: Does this mean the Return() comes before Asterisk looks into the context [TrunkAccounts] ?? No, I believe the includes are read first, but the order in important. Since you may be matching against another context that may cause failure. For example, I have the

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Jonas Kellens
On 01/13/2012 04:22 PM, Doug Lytle wrote: Jonas Kellens wrote: Does this mean the Return() comes before Asterisk looks into the context [TrunkAccounts] ?? No, I believe the includes are read first, but the order in important. Since you may be matching against another context that may cause

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Doug Lytle
Jonas Kellens wrote: there is only one include-statement Then I don't know. I am still on 1.4.x and my PRI context contains all that I'm matching against (No sub contexts). Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety,

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Doug Lytle
Doug Lytle wrote: Then I don't know. I am still on 1.4.x and my PRI context contains all that I'm matching against (No sub contexts). One thing does come to mind; the inbound call is coming into your s extension and then your doing a gosub, in which case, you might be matching

Re: [asterisk-users] dialplan problem : not including context

2012-01-13 Thread Administrator TOOTAI
Le 13/01/2012 14:32, Jonas Kellens a écrit : On 01/13/2012 02:23 PM, Doug Lytle wrote: Jonas Kellens wrote: I have the following in dialplan : [TrunkAccounts] dialplan show TrunkAccounts Make sure the sort order is what you're expecting. Doug Hello, The order is correct for as far as