Solved

Asterisk / FreePBX + FollowMe

Posted on 2009-07-08
1
2,123 Views
Last Modified: 2013-12-21
Maybe some Asterisk experts can help me out here.

I am running an AsteriskNow v1.5.0 box which has FreePBX on it. Everything configured on the server is fairly simple and straightforward. There's an IVR, and a few extensions. My outbound route goes through an IAX2 trunk provided by my Voip service provider.

Now the tricky part. I setup a custom extension in /etc/asterisk/extensions_custom.conf. My IVR has a menu item that goes to that custom extension. The custom extension does some processing, plays some messages, then it DIALS extension SIP/7300. All of that works fine.

I setup FollowMe on ext 7300 using the FreePBX web administration panel. When I dial extension 7300 directly from a softphone like X-lite, it will also cause ext 7301 and 7302 to ring simultaneously. And, an outbound route to my cell phone rings as well.

The problem is the custom extension I setup. It still dials SIP/7300. When I go through the IVR menu only extension 7300 rings, and none of the others. The followme is NOT performed.

What can I do in my extensions_custom.conf so that I can execute the FollowMe for extension 7300? So that all the phones ring like I expect them to?

Attached is my extensions_custom.conf, if anybody cares:
[kcs-newcall]
 
# Extension picks up the line
exten => 2000,1,Answer
exten => 2000,n,Playback(custom/please_wait_for_assistant)
 
# Do some pre-processing
exten => 2000,n,AGI(KCS-callin1|param1|param2)
 
# Turn on call recording
exten => 2000,n,MixMonitor(/record/calls/call${NEWPBXCALLID}.wav|b)
 
# Transfer call to ext 7300
exten => 2000,n,Set(CALLERID(num)=${CALLERID(num)})
exten => 2000,n,Set(CALLERID(name)=${CALLERID(name)}-${NEWPBXCALLID})
exten => 2000,n,Dial(SIP/7300,30,rig)
 
# Behavior depending on if transfer was successful or not
exten => 2000,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?finished:failed)
exten => 2000,n(failed),Goto(kcs-callback-ask,6001,1)
exten => 2000,n(finished),AGI(KCS-callout|${NEWPBXCALLID}|param2)
exten => 2000,n,Playback(custom/thank_you_for_using_us)
exten => 2000,n,Playback(custom/you_can_callback_anytime)
exten => 2000,n,Playback(custom/goodbye)
exten => 2000,n,Hangup

Open in new window

0
Comment
Question by:Frosty555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

by:
Frosty555 earned 0 total points
ID: 24836854
The trick was to not use FollowMe, instead use ringgroups.

I added the "Ring Groups" module to FreePBX. Then set up a ringgroup named "600" which dialed everyone I needed to dial.

Then in my custom extension I could dial it like this:

exten => 2000,n,Dial(Local/600@ext-group)

The "ext-group" is the name of the context that the ring group resided in. It's a bit of a hack, probably not a good idea to refer to contexts that were autogenerated, but it works.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: user_n
How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
Implementing Avaya's One-X portal is pretty painless, until you want to deploy this to the Android and iPhone clients when these clients are outside of your network. The clients will also work within your local network. Here is our experience and so…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 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