Solved

AsteriskNow call redirect with different callerID

Posted on 2010-08-14
14
961 Views
Last Modified: 2013-11-12
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.
0
Comment
Question by:Tom
  • 7
  • 5
  • 2
14 Comments
 
LVL 32

Expert Comment

by:DrDamnit
ID: 33437729
I would like to help you, but don't understand what you're trying to accomplish. What is the goal?
0
 
LVL 9

Author Comment

by:Tom
ID: 33437894
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.
0
 
LVL 6

Assisted Solution

by:nasirbest
nasirbest earned 100 total points
ID: 33438831
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"
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 33439141
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?
0
 
LVL 9

Author Comment

by:Tom
ID: 33439860
DrDamnit
That sounds exactly what I like to do!
0
 
LVL 9

Author Comment

by:Tom
ID: 33440353
nasirbest:

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
0
 
LVL 6

Expert Comment

by:nasirbest
ID: 33440438
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
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 32

Accepted Solution

by:
DrDamnit earned 400 total points
ID: 33440517
OK... that being said here's what you need:

[you-context]
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)
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 33440527
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.
0
 
LVL 9

Author Comment

by:Tom
ID: 33440603
DrDamnit
I dont mind to do it the "coder way", can you please kindly assist me with info where to put
the lines of code?
0
 
LVL 9

Author Comment

by:Tom
ID: 33440702
My extensions.conf file looks like this
extensions.conf.txt
0
 
LVL 9

Author Comment

by:Tom
ID: 33441011
nasirbest:
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.
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 33441409
tru3533:

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:
extensions_custom.conf

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.
0
 
LVL 9

Author Closing Comment

by:Tom
ID: 33442294
Thank you both for the tips, managed to figure out the rest, so its working now. And I got a great introduction to Asterisk.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server. # Setup the system apt-get install subversion apt-get install make apt-get install linux-source kernel-p…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now