# ANI Passing and Manipulation

**URL:** <https://community.brightpattern.com/t/ani-passing-and-manipulation/600>\
**Category:** Product Q&A\
**Created:** [January 14, 2022, 3:26pm UTC](https://community.brightpattern.com/t/ani-passing-and-manipulation/600 "2022-01-14T15:26:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maverick\_Hunters](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/maverick_hunters/32/206_2.png) [@Maverick\_Hunters](https://community.brightpattern.com/u/Maverick_Hunters)\
**Post date:** [January 14, 2022, 3:26pm UTC](https://community.brightpattern.com/t/ani-passing-and-manipulation/600/1 "2022-01-14T15:26:39Z")

</div>

I know there is a variable to pull the caller ID (ANI) but is there a way to set it or change it within the scenario? We are trying to send out different caller ID’s on dial outs based on a service.

---

<div class="post-metadata">

**Author:** ![Avengers\_Phone\_Wars](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Avengers\_Phone\_Wars](https://community.brightpattern.com/u/Avengers_Phone_Wars)\
**Post date:** [January 14, 2022, 3:58pm UTC](https://community.brightpattern.com/t/ani-passing-and-manipulation/600/2 "2022-01-14T15:58:04Z")

</div>

Sorta, yes…but not within the scenario. You’ll need to ask BP support to add a caller ID so they can pulse out a caller ID based on service. That said…

This is a very good way to have your number get banned or marked as spam on carriers. So take caution if you are going to do this, particularly is you are dialing the same people multiple times.

---

<div class="post-metadata">

**Author:** ![Melinyaniso\_Mapi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/melinyaniso_mapi/32/112_2.png) [@Melinyaniso\_Mapi](https://community.brightpattern.com/u/Melinyaniso_Mapi)\
**Post date:** [January 21, 2022, 10:58am UTC](https://community.brightpattern.com/t/ani-passing-and-manipulation/600/3 "2022-01-21T10:58:14Z")

</div>

Maybe clarify the type of change you want to do to the ANI, prefix/suffix,?

I use the following logic to strip prefix 0 to replace with international dial code +27 , in this scenario i have already collected/stored/saved the ANI into a variable ,

=replace("$(cbPhone)","^0",“27”,"")

---

<div class="post-metadata">

**Author:** ![pbx\_master](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/pbx_master/32/204_2.png) [@pbx\_master](https://community.brightpattern.com/u/pbx_master)\
**Post date:** [February 2, 2022, 4:44pm UTC](https://community.brightpattern.com/t/ani-passing-and-manipulation/600/4 "2022-02-02T16:44:36Z")

</div>

I suppose you can use the dial plan to do the same thing, but I like that regex idea. We might have to start using that.

---

<div class="post-metadata">

**Author:** ![Derek](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/derek/32/103_2.png) [@Derek](https://community.brightpattern.com/u/Derek)\
**Post date:** [March 12, 2022, 2:16am UTC](https://community.brightpattern.com/t/ani-passing-and-manipulation/600/5 "2022-03-12T02:16:28Z")

</div>

There is a way to do this in a scenario. It is something I figured out how to do back in 2015 and have been using it ever since. Due to the potential of its misuse/abuse I don’t feel comfortable sharing on an open forum or community. You are welcome to PM me or you can ask support how it is done.

Using the Dial out entries is a great way to add or change a prefix, but if you want to fully alter all parts of a callers ANI you have to do it in the scenario.
