# Dialplan not matching wildcard

**URL:** <https://community.asterisk.org/t/dialplan-not-matching-wildcard/113129>\
**Category:** Asterisk Dialplan\
**Created:** [June 5, 2026, 6:16pm UTC](https://community.asterisk.org/t/dialplan-not-matching-wildcard/113129 "2026-06-05T18:16:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kb9mfd](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kb9mfd](https://community.asterisk.org/u/kb9mfd)\
**Post date:** [June 5, 2026, 6:16pm UTC](https://community.asterisk.org/t/dialplan-not-matching-wildcard/113129/1 "2026-06-05T18:16:27Z")

</div>

Asterisk 21.19.1

I have a custom dialplan as below on a freepbx -

`[page-timeout]`  
`exten => _.,1,Noop(Page Timeout)`  
`same => n,NoOp(Checking if call to paging is a transfer)`  
`same => n,GotoIf($[“${BLINDTRANSFER}” != “”]?transfer_blocked)`  
`same => n,GotoIf($[“${ATTENDEDTRANSFER}” != “”]?transfer_blocked)`  
`same => n,Set(TIMEOUT(absolute)=10)`  
`same => n,Goto(app-pagegroups,${EXTEN},1)`  
`same => n(transfer_blocked),Hangup`

I have a custom destination setup along with a misc application. When I dial the access code (398) I get this -

```auto
-- Executing [398@from-internal:6] Goto("PJSIP/1209-00006992", "page-timeout,399,1") in new stack
-- Goto (page-timeout,399,1)

[2026-06-05 12:48:10] WARNING[2775751][C-00002988]: pbx.c:4521 __ast_pbx_run: Channel ‘PJSIP/1209-00006992’ sent to invalid extension but no invalid handler: context,exten,priority=page-timeout,399,1

```

Then the call drops. 399 is the page code, and it works; 398 is assigned to dial the goto statement. What am I not understanding? Shouldn’t that be working?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [July 5, 2026, 6:16pm UTC](https://community.asterisk.org/t/dialplan-not-matching-wildcard/113129/2 "2026-07-05T18:16:42Z")

</div>

Closed on July 5, 2026, 6:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
