# Dialing Restriction Rules not working

**URL:** <https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185>\
**Category:** Reporting an Issue\
**Created:** [July 31, 2021, 3:00pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185 "2021-07-31T15:00:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)\
**Post date:** [July 31, 2021, 3:00pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/1 "2021-07-31T15:00:40Z")

</div>

Dialing Restriction Rules are not working.  
I want to allow on certain number(s) to be dialed.  
I can still call any number. I sure set the CoS in the extension.

 ![image](https://forums.vitalpbx.org/uploads/default/original/1X/754451d2d77dd7a09cefa1df5d2812e473273413.png)

VitalPBX 3.1.0-1

---

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [July 31, 2021, 6:28pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/2 "2021-07-31T18:28:33Z")

</div>

Is this dial restriction tied to a COS?

Also, try filling in a custom context.

---

<div class="post-metadata">

**Author:** ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)\
**Post date:** [July 31, 2021, 9:53pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/3 "2021-07-31T21:53:17Z")

</div>

Yes it is tied to a COS. And that COS is assigned to the extension.  
.800330100 is the problem here so it seams after testings. It will allow any number.

Which custom context should i assign and how should the CC look like?

If i use patterns without the .8003301000 all looks fine.

Thanks

---

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [July 31, 2021, 10:21pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/4 "2021-07-31T22:21:50Z")

</div>

Can you please share a call trace via [pastebin.com](http://pastebin.com) link?

---

<div class="post-metadata">

**Author:** ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)\
**Post date:** [August 2, 2021, 8:46pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/5 "2021-08-02T20:46:43Z")

</div>

It is not showing anyting helpful. It’s allwoing anything so nothing is in the trace.  
Seems like the “.” is allow everything even there are numbers after that.

---

<div class="post-metadata">

**Author:** ![CristianR](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/c/c77e96/32.png) [@CristianR](https://forums.vitalpbx.org/u/CristianR)\
**Post date:** [August 2, 2021, 9:00pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/6 "2021-08-02T21:00:29Z")

</div>

[VitalPBX - Dial Restriction Rules - YouTube](https://www.youtube.com/watch?v=zTsDwWzQFJI&list=PLvrnwhPgC_Q6X6o-DR6ZWOwihi6wM8BAB&index=81&ab_channel=VitalPBX) Here you can see a use case of the module. Are you applying the pattern correctly?

---

<div class="post-metadata">

**Author:** ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)\
**Post date:** [August 2, 2021, 9:35pm UTC](https://forums.vitalpbx.org/t/dialing-restriction-rules-not-working/185/7 "2021-08-02T21:35:35Z")

</div>

i thought it would be good to use the “.” before 8003301000 to include:  
+49800301000 and  
00498003301000 and  
08003301000

But i guess this ins not working and is causing problems.  
In the end there must be quite some Numbers in there that are allowed to be called. I guess i have to add all of them with the 3 possible ways each.
