[Asterisk-Users] priorityjumping=no

Olle E Johansson oej at edvina.net
Tue Mar 14 01:02:50 MST 2006


14 mar 2006 kl. 01.45 skrev Steve Kennedy:

> On Mon, Mar 13, 2006 at 07:38:01PM -0500, Watkins, Bradley wrote:
>
>> That depends on what you mean by default.  The supplied sample
>> extensions.conf contains the priorityjumping=no by default, but if  
>> this
>> parameter is absent then the default is to jump n+101.
>
> OK, that explains it, just wondering why the sample extensions.conf
> turns it off, while the O'Reilly Asterisk book and alomst  
> everything you
> see on the web uses it ???
>
> I would have thought the default would be to have it on?

In 1.2 we switched from priority jumping to returning values in
STATUS variables. If you look in the sample extensions.conf you
will see how that work, that the result of dial() is now returned in
the DIALSTATUS variable.

Using DIALSTATUS will give you many more ways to control the
result of dial, than just checking for +101. You can react to no answer,
congestion, busy, privacy and other things.

Even more detailed status is frequently available in the HANGUPCAUSE
variable that uses ISDN cause codes.

"Show application dial" is your best friend.

For each application that used to return priority+101 or something else
there's a new XXXXSTATUS variable that you can use.

We do no longer accept patches that use priority jumping, that's
a remain from the past that will be removed in future versions of
Asterisk. From the file UPGRADE.txt in the svn trunk distribution:

"Applications:

* In previous Asterisk releases, many applications would jump to  
priority n+101
   to indicate some kind of status or error condition.  This  
functionality was
   marked deprecated in Asterisk 1.2.  An option to disable it was  
provided with
   the default value set to 'on'.  The default value for the global  
priority
   jumping option is now 'off'."

/Olle



---
* Olle E. Johansson - oej at edvina.net
* Asterisk Training http://edvina.net/training/






More information about the asterisk-users mailing list