› VitalPBX Community Support › General Discussion › CID Modifier
- This topic has 7 replies, 3 voices, and was last updated 6 days, 18 hours ago by
Bryan.
- Post
-
- December 11, 2020 at 11:09 am
I have an issue with CID and looking for a solutionWere in the UK and calls come into the PBX with CID
+441234567890 for me to dial this back i would call 01234567890
So removing the +44 and adding a 0I can achieve this using the CID modifier prepend and append and works fine until i receive an international call.
if a call arrives from +123456789012345 it would replace it with 03456789012345
What i would like is to match if the callerid starts with +44 then replace that with a 0 which would leave the other international calls alone.
anyone have any suggestions?
Regards
Dan
0
- Replies
-
- December 16, 2020 at 11:34 am
- December 16, 2020 at 2:04 pm
- December 16, 2020 at 2:47 pm
OK i understand your example it would work however you would need two inbound routes for each number- ddi and cid matching +44. with cid modifier to catch the uk callers
- ddi with no cid or modifier to catch the other numbers.
This would get a little messy as there are a few hundred dids on this system.
0- December 16, 2020 at 4:02 pm
If you need something more complex you can create a small script that changes the CID Number according to some conditions. For this, you can use the CID Modifier using as a source the “HTTP/HTTPS Request” option.0- December 17, 2020 at 5:12 pm
- January 13, 2021 at 12:37 pm
- January 17, 2021 at 9:41 am
Hello,I’m not certain, but it would appear that CID Modify via HTTP/HTTPS might not be URL escaping the data applied through the [CIDNAME] and [CIDNUM] placeholders, causing it to fail in most cases.
I am able to make it partly work by replacing the variables with the actual escaped text, which demonstrates that it does consume the returned JSON data from a REST server and then accordingly replaces the CID name and number.
-Bryan
0
Tagged: cid caller id URL escaping
- You must be logged in to reply to this topic.