Transfer to Premicell on no answer

I’ve read a lot of the documentation and topics on various forums. It has helped me setup a system that is very close to what we need it to do. I’ve now got stuck on the following:

A call comes in and goes through the IVR, to a ring group, then a queue.
If there is no answer on any of the internal extensions we want the call to fall over to the extension that we have a premicell connected to, and automatically dial a mobile number. We can do all of this except get asterisk to ‘dial’.

Please can someone give us an idiots, step by step guide to set this up?!
We are using a TMD400P (2FXO 2FXS) card and running Asterisk and FreePBX 2.0.1

Please let me know if you need any more info to help with getting this sorted.


so the premicell is connected on a FXO channel, lets call it ZAP/1.

and your current Dialplan might look like this:

exten => s,1,Background(welcome-ivr)
exten => s,n,Dial(SIP/ringgroup/queue)

exten => s,n,Goto(pd-${DIALSTATUS},1)

exten => pd-CHANUNAVAIL,1,Set(PRI_CAUSE=42)
exten => pd-CHANUNAVAIL,2,Hangup()
exten => pd-BUSY,1,Dial(ZAP/1/5555555)
exten => pd-NOANSWER,1,Dial(ZAP/1/5555555)
exten => pd-CONGESTION,1,NoOp(Do something)

The problem is that when you GoTo, EXTEN gets overwritten, but if you have a specific Mobile number to dial, then you should be fine

Hi and thanks for the quick reply. The Premicell is currently on ZAP/1 which is an FXS port I have been setting the system up mostly by using FreePBX, so haven’t had to do much in the config files. Unfortunately I’m not too sure where I’d find or put the info in your post. I really need an idiots guide!
Am I best using the Premicell as an extension or a trunk and how would I set it up to automatically dial my mobile if there was no answer elsewhere?
Apologies for my ignorance I know it’s probably a pretty straight forward operation, it’s just that I need to know exactly what code to type and where to type it! :blush:

Ok so is the question about how to get it dail out? or is it about how to fail over to it.

Can u dial out on the device?

In Freepbx you would use “follow me” for the part where it fails over to the cell phone on No answer.

Is there tone at the device if you plug in a standard phone??
BT phones??
If you got tone and it does not dial out then you should post you zaptel.conf file

Hi Brian

I have not really used FreeBPX, so you better off following bubba’s post. But if you want to put my addition in, I think it could go in extensions.conf, or extensions_additional.conf (or something like that)

Good Luck :smile:

Thanks for the replies.
The question is (I think!) how to get asterisk to dial a number.
I can get the queue to fall over to an extension, that’s not a problem.
I can get the premicell to be ‘registered’ on say…205.
I can dial 205 from another extension and get a dial tone, then I can dial out and all seems to work in that respect. So my problem is if I get the queues to fall over to 205, how do I get asterisk to dial a ‘pre-programmed’ number whenever 205 is called?

Or, I may be going about it completely the wrong way??!!

Here’s the Zaptel.conf file if it’s any help

[quote]# Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”


Span 2: ZTDUMMY/1 “ZTDUMMY/1 1”

Global data

loadzone = uk
defaultzone = uk[/quote]

OK You would not be making it a exten, you would use it as if it were a standard phone line.

If you have a working zaptel card and you can plug the premicell into the card it becomes a “trunk” just as if it was a Jack on the wall from telco

So U need a outbound route with the Zap channel (premicell) listed as a trunk.

So u create a “follow me” for the ques to fail to.
in the follow me you put the cell phone xxxxxxxx# the # at the end tells asterisk to dial now.

You do not edit any .conf files but the _custom.conf files, as all others can be over written (the _additional.conf files by freepbx when you load the conf from MYSQL, by clicking the red bar) the standard .conf can be overwritten when upgrading freepbx.