# Asterisk get the number after the star.

• Hello, everyone!

I want to have an opportunity to cross into the interior when I call. Like, if the caller got it. `+71234567890*111` Then after the call. `+71234567890` He was transferred to the interior. `111` number. The same can be achieved by calling `+71234567890` and at the invitation of the respondent `111`but it's a little longer. The problem is none of the variable fields. `\${CALLERID}` `("name", "num", "all", "ANI", "DNID", "RDNIS")` I don't see the numbers after the star. I think the mob's not going anywhere. `111`What do you say?

• What you'll get in the variable. `\${EXTEN}` Not `\${CALLERID}`The number and the star that you've put at this moment will be prefix. Such operations may be used to cut the prefix:

``````\${123456789:1} = 23456789
\${123456789:-4} = 6789
\${123456789:0:3} = 123
\${123456789:2:3} = 345
\${123456789:-4:3} = 678
\${+71234567890*111:13} = 111
``````

It's, of course, if the number comes in that format on Aster.

2

2

2

2

2

2

2

2

2

2

2

2

2

2

2