Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old June 25th, 2006, 07:11 AM
Senior Member
 
Join Date: Jun 2006
Posts: 103
fredtheman
Default Routing calls through two FXO cards without answering?

Hi

I'm having a hard time finding information to know whether Asterisk is able to route incoming calls from one FXO card to another one without answering the call and asking the user to type an extension. It looks like I'm the only person on this planet who ever had the need to hide from customers the fact that I'm off to a remote office, ie. not ask them to dial another POTS number to find me :-)

A picture being a thousand words, you'll find a diagram, the configuration files and two log files here:

http://codecomplete.free.fr/asterisk/goal.html

Can any experienced Asterisk users out there tell me whether what I'd like to do is possible, and if yes, show me some example configuration files that I could use?

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old June 25th, 2006, 07:52 AM
mberlant's Avatar
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Routing calls through two FXO cards without answering?

Asterisk is able to do whatever you can imagine. You just have to tell it what you need. It appears that you have not defined in extensions.conf what you want to happen when the one Zap channel receives an incoming call. As you read through the previous postings here and the documentation at www.asterisk.org and www.voip-info.org you will pick up the education you will need to understand how Asterisk works. Once you have that you will be able to set up your Asterisk for Call Forwarding.

By the way, is there some reason you don't just carry a softphone or hardware adapter with you as a VoIP extension of Asterisk? That's probably the most popular way of receiving calls when away from home. X-Lite works great with Asterisk.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old June 25th, 2006, 05:41 PM
Senior Member
 
Join Date: Jun 2006
Posts: 103
fredtheman
Default Re: RE: Routing calls through two FXO cards without answerin

Quote:
Originally Posted by mberlant
It appears that you have not defined in extensions.conf what you want to happen when the one Zap channel receives an incoming call.
Yes, I did. The context [cherbourg] is applied to the Zap/1 interface in zapata.conf, and handled in extensions.conf. It just dials out a number through Zap/2. Do I need something else?

Quote:
Originally Posted by mberlant
Once you have that you will be able to set up your Asterisk for Call Forwarding.
If Call Forwarding means that 1) phones in the main office (where Asterisk is) won't ring anymore, or 2) that Asterisk will need to go off-hook on Zap/1 to first answer the call before ringing the remote phone, it's not what I need: I want Asterisk to simply ring all phones at the local office and one phone at the remote office, all without going off-hook, so that customers aren't charged for unanswered calls.

Quote:
Originally Posted by mberlant
By the way, is there some reason you don't just carry a softphone or hardware adapter with you as a VoIP extension of Asterisk?
Because the ADSL modem to which the second FXO card is connected allows for free calls over the POTS network (so-called "triple play ADSL"), so that I can use a regular phone at the remote office. If I can't get Asterisk to handle things this way, I'll buy an IP phone or ATA adapter for the remote office and use SIP/IAX2 instead.

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old June 26th, 2006, 12:08 AM
mberlant's Avatar
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Re: RE: Routing calls through two FXO cards without answ

Using a remote client is cleaner, but your description indicates that all of your processing pieces are in order.

I recommend that you go into extensions.conf and put a few NoOp("I got this far") lines in the section of code that receives the inbound call and sends it out the second line. Then, place a test call while watching your CLI to see just what happens. If you don't see any activity, your problem is in zapata.conf not handing off the call properly to extensions.conf. If you do see activity, you can see by the NoOp comments just where the call is failing.

Let us know.

p.s. Call Forwarding is taking the call and sending it somewhere else without manual intervention. Call Transfer is manually picking up the call and then sending it somewhere else. Cheers.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old June 26th, 2006, 08:33 AM
Senior Member
 
Join Date: Jun 2006
Posts: 103
fredtheman
Default Re: RE: Re: RE: Routing calls through two FXO cards without

Quote:
Originally Posted by mberlant
I recommend that you go into extensions.conf and put a few NoOp("I got this far") lines in the section of code that receives the inbound call and sends it out the second line. Then, place a test call while watching your CLI to see just what happens. If you don't see any activity, your problem is in zapata.conf not handing off the call properly to extensions.conf. If you do see activity, you can see by the NoOp comments just where the call is failing.
Great. So here's the extensions.conf I'll use:

Code:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
TRUNK=Zap/2

[cherbourg]
exten => s,1,NoOp(Before Dialing out through ${TRUNK})
exten => s,n,Dial(${TRUNK}/01XXXXXX)
exten => s,n,NoOp(After Dialing out through ${TRUNK})
Quote:
Originally Posted by mberlant
p.s. Call Forwarding is taking the call and sending it somewhere else without manual intervention. Call Transfer is manually picking up the call and then sending it somewhere else.
Thanks for the clarification. I'll actually get rid of the rPath PoundKey Linux distribution, install Fedora 5 instead, compile the latest Zaptel + Asterisk, and report back what I found.

Thx everyone for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old July 5th, 2006, 06:43 AM
Senior Member
 
Join Date: Jun 2006
Posts: 103
fredtheman
Default Re: RE: Re: RE: Routing calls through two FXO cards without

For those trying this... with much help from the experts on the IRC channel, especially the mighty Strom_C...

1. we did get some routing happening between FXO2 -> FXO1 (not the other way around, go figure), but...
- all I hear when the I pick up the phone on FXO1 is noise,
- we had to have the ingress FXO card go off-hook to handle the call (and charging customers a call even if no one ends up answering...), and
- the FXO detects neither caller ID nor call termination.

So it doesn't look like routing calls between txo FXO cards is doable, at least with X101P clones (possibly OK with Digium cards). I'm told a much better solution is to go SIP (a.k.a. "media gateway".)

2. In zapata.conf, make sure you use "channel=>1-2" instead of "channel=>1,2"

3. Here's what you can try in extensions.conf

Code:
[general] 
static=yes 
writeprotect=no 

[globals]
TRUNK=Zap/1
;TRUNK=Zap/2
NUMBER=5551234

[incoming]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Dial(${TRUNK}/${NUMBER})

;Didn't work
;exten => s,1,NoOp(Before Dialing out through ${TRUNK} - Caller ID is ${CALLERID}) 
;exten => s,n,Dial(${TRUNK}/${NUMBER}) 
;exten => s,n,NoOp(After Dialing out through ${TRUNK})
HTH
Fred.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SPA-3000 FXO gateway to Asterisk (without 'answering' first) tomc Linksys (Sipura) VoIP Support Forum 49 May 13th, 2006 04:34 AM
HT-488: call from FXO to answering machine dropped on beep dyzchyd Grandstream Support Forum 5 April 28th, 2006 06:13 PM
SPA-3000 FXO gateway to * without answering fails sometimes djw Linksys (Sipura) VoIP Support Forum 0 October 12th, 2005 03:02 PM
Answering POTS calls on IP phone simanu Asterisk Support Forum 1 October 10th, 2005 11:03 PM
Generic FXO Cards for Asterisk - US$19.99 muppetmaster Asterisk Support Forum 12 July 29th, 2004 10:23 PM



All times are GMT. The time now is 07:28 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.