How can I fix this error and make the phone ring

extensions.conf
[test]
exten => 20,1, Answer()
same => n, Playback(hello-world)
same => n, Hangup()

exten => 20[01], Verbose(2,Call for Extension ${EXTEN})
same => n, Progress()
same => n, Dial(SIP/${EXTEN})
same => n, Hangup()

indigo*CLI> dialplan reload
Dialplan reloaded.
[Aug 17 12:50:47] WARNING[12809]: pbx_config.c:1781 pbx_load_config: Label missing trailing ‘)’ at line 874 of extensions.conf

As stated above please check your extention.conf file

check which “(” I have to add from here

[test]
exten => 20,1, Answer()
same => n, Playback(hello-world)
same => n, Hangup()

exten => 20[01], Verbose(2,Call for Extension ${EXTEN})
same => n, Progress()
same => n, Dial(SIP/${EXTEN})
same => n, Hangup()

which “(” missing?

The one on line 874, which you have not included above.

Also 20[01] seems an unlikely value. _20[01] would be plausible, although having numbers that are substrings of others is not a good idea.

this line 874
exten => 20[01], Verbose(2,Call for Extension ${EXTEN})

You have no priority field.

(And as already noted, it is unlikely that the extension field is semantically correct.)

as I changed 20[01] on this _20[01]

[test]
Order: 871 exten => 20,1, Answer()
Order: 872 same => n, Playback(hello-world)
Order: 873 same => n, Hangup()

Order: 875 exten => _20[01], Verbose(2,Call for Extension ${EXTEN})
Order:876 same => n, Progress()
order: 877 same => n, Dial(SIP/${EXTEN})
order: 878 same => n, Hangup()


indigo*CLI> dialplan reload
Dialplan reloaded.
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '' at line 871 of extensions.conf
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '&gt' at line 872 of extensions.conf
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '&gt' at line 873 of extensions.conf
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '' at line 875 of extensions.conf
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '&gt' at line 876 of extensions.conf
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '&gt' at line 877 of extensions.conf
[Aug 17 14:12:32] NOTICE[13105]: pbx.c:2951 pbx_extension_helper: Cannot find extension '&gt' in context ''
[Aug 17 14:12:32] WARNING[13105]: pbx_config.c:1815 pbx_load_config: Invalid priority/label '&gt' at line 878 of extensions.conf

I had assumed that the HTML entities were because you didn’t know how to use the forum, but it looks as though you have now actually put them in the configuration file.

Hi flubber,

Try this

[test]
exten => 20, 1, Answer()
same => n, Playback(hello-world)
same => n, Hangup()

exten => _20[01], 1, Verbose(2,Call for Extension ${EXTEN})
same => n, Progress()
same => n, Dial(SIP/${EXTEN})
same => n, Hangup()

You need to provide ‘priority as 1’ with 2nd exten line

this worcked

indigo*CLI> dialplan reload
Dialplan reloaded.

but again can not be dialed
.

Connected to Asterisk 15.5.0 currently running on mail (pid = 13689)
[Aug 17 16:54:11] NOTICE[13750][C-00000001]: chan_sip.c:26513 handle_request_invite: Call from '200' (192.164.0.106:5061) to extension '123456' rejected because    extension not found in context 'test001'.

You haven’t provided context test001 (and there is no extension that matches 123456 in context test).

1 Like

Hi flubeer,

Look at the error message. Try to read it loud. It’s very clear.

No spoon feeding please.