AsteriskNow call redirect with different callerID

I have installed latest version of AsteriskNow.
Trying to setup a simulator system with 2 IP phones.
ext 100 and 200

When ext 200 dials example: 135 the call must be redirected to ext 100 with the callerID name and ext no from Ext 135.

By using FreePBX and adding a extension (135) with Other (Custom) Device settings I can set the "This device uses custom technology" to SIP/100

I can now from ext 200 dial 135 and beeing redirected to ext 100.
Problem is that the name and number from ext 200 is displayed in ext 100 when calling.

What I like to have displayed is 135 and the name from ext 135.
on the ext 200 when calling.

Any idea how do this? Any help is highly appreciated.
LVL 10
TomMicrosoft ISV PartnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I would like to help you, but don't understand what you're trying to accomplish. What is the goal?
TomMicrosoft ISV PartnerAuthor Commented:
OK, What I like to do is:
Connect 2 SIP telephones to the system. (OK done)
Telephone 1 have phone number 100, (OK done)
Telephone 2 have phone number 200, (OK done)
Now the problem:
10 extra phone numbers need to be in the system, they don't exist,
it is only simulated telephone numbers.
First phone number is 135 next phone number is 136 and so on.

In the training center I have a training room and a instructor room.
Telephone number 200 is in the training room and telephone number 100 is in the
instructor room.
So when the student dials number 135 it is forwarded to telephone number 100.
When the telehone rings in the instructor room, the instuctor need to know who the student is trying to call so he can act like the owner of telephone number 135.

If the student is dialing number 136 the instructor need to act like the owner of telephone number 136.
and so on.

Hope this make sense.
Why you are not using queues? they are made for this purpose. for queues this can be accomplished by

1. create queue for each room / department (135, 136 ...)
2. add desired extension (for example 100)  as static agent
3. put desired callerid name in "CID Name Prefix"
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Ok. What I think you're trying to do is route a range of phone numbers to a handset.

For example, 130-139 are to be answered by extension 100, and extension 100 should see the callerID that matches from that number.
140-149 should be answered by extension 200, and that extension should show the originating number as well.

So, let's say a call comes in on 135, it would be routed to extension 100, and the callerID on that call would say "135". Right?
TomMicrosoft ISV PartnerAuthor Commented:
That sounds exactly what I like to do!
TomMicrosoft ISV PartnerAuthor Commented:

Sorry I dont know how to use queues. Latest version of AsteriskNow uses 1.7 with FreePBX
I dont find any queues in the menu
To enable queue module you have to do following

1. click "Module Admin" from menu
2. click "Check for updates online"
3. local "Queue" module click on it and choose to install
4. proceed to save new configuration and reload asterisk
OK... that being said here's what you need:

exten => _13X,1,Set(CALLERID(name)=${EXTEN}
exten => _13X,n,Dial(SIP/100)

exten => _14X,1,Set(CALLERID(name)=${EXTEN}
exten => _14X,n,Dial(SIP/200)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sorry... I just realized you're using the GUI. I don't use the GUI. I do everything the coder way.

You need to add a call rule that matches numbers. You want to match 13X and route that to 200. This will give you the dialing functionality, but not the CID functionality.

You'll probably need to use an IVR in AsteriskNow. Have the IVR do the following things:

1. Match the calling party
2. Set the CallerID
3. Dial the extension to where you want to route the call.
TomMicrosoft ISV PartnerAuthor Commented:
I dont mind to do it the "coder way", can you please kindly assist me with info where to put
the lines of code?
TomMicrosoft ISV PartnerAuthor Commented:
My extensions.conf file looks like this
TomMicrosoft ISV PartnerAuthor Commented:
Thanks for the queues option. what happens is what the name says "CID Name Prefix"
I can now add some text before the callers original name, it will not hide the original name.

You can't edit your extensions.conf directly because it will be overwritten then next time you use the GUI and hit "save".

Instead, you have to add all your modifications here:

The way asterisk loads these files is that they "overlay" upon one another. So it will load the GUI generated extensions.conf then it will load the extensions_custom.conf.

So, you'll need to create a context that is the same name as the context that you created in the GUI in extensions_custom.conf, and then paste the code I put above there. Then, reload everything.

Let me know if that doesn't work. I have not actually tried it in AsteriskNOW, but it should work.
TomMicrosoft ISV PartnerAuthor Commented:
Thank you both for the tips, managed to figure out the rest, so its working now. And I got a great introduction to Asterisk.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.