ERROR[17943]: pbx.c:3367 ast_func_read: Function SHIFT not registered


#1

When using SHIFT conditions in dialplan , CLI shows the above error.

Which module to load the SHIFT condition in asterisk.

I had loaded func_logic module in asterisk but same error repeating…


#2

The SHIFT dialplan function is in the func_strings module.


#3

On loading func_strings.so

Loaded func_strings.so
== Registered custom function ‘FIELDQTY’
== Registered custom function ‘FILTER’
== Registered custom function ‘LISTFILTER’
== Registered custom function ‘REGEX’
== Registered custom function ‘ARRAY’
== Registered custom function ‘QUOTE’
== Registered custom function ‘CSV_QUOTE’
== Registered custom function ‘LEN’
== Registered custom function ‘STRFTIME’
== Registered custom function ‘STRPTIME’
== Registered custom function ‘EVAL’
== Registered custom function ‘KEYPADHASH’
== Registered custom function ‘HASHKEYS’
== Registered custom function ‘HASH’
== Registered application ‘ClearHash’
== Registered custom function ‘TOUPPER’
== Registered custom function ‘TOLOWER’
Loaded func_strings.so => (String handling dialplan functions)

It loaded successfully but getting the same error.


#4

What version of Asterisk are you using?


#5

Currently , I am using asterisk version 1.6 in my server

But i had now switched to asterisk 16.1.1 version it’s working but unable to use Macro in dialplan functions to jump to another context…


#6

In version 16 Macro are depreacted. You could in menuconfig enable it. Now you should use GoSub() instead Macro()


#7

Thanks @jcolp @przeqpiciel for your information…

I will try my best …


#8

Actually, they are also deprecated in 1.6, but I think, with 16, they may not be included in the standard build.


#9

Thanks @david551 , I will try with asterisk version 16