Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Configuring modem pools in Asterisk [WAS: C


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
craig.a.guy at gmail.com
Guest





PostPosted: Tue Feb 26, 2008 8:26 pm    Post subject: [asterisk-users] Configuring modem pools in Asterisk [WAS: C Reply with quote

It should look more like this:

exten => fax,1,Dial(IAX2/iaxmodem1/${NumberCalled}|20)
exten => fax,n,Dial(IAX2/iaxmodem2/${NumberCalled}|20)
exten => fax,n,Dial(IAX2/iaxmodem3/${NumberCalled}|20)
exten => fax,n,Dial(IAX2/iaxmodem4/${NumberCalled}|20)
exten => fax,n,Busy()

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua Kinard
Sent: Wednesday, 27 February 2008 7:49 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Configuring modem pools in Asterisk [WAS:
Connecting a Rolm CBX to Asterisk via T1?]
Okay, T1 card issue sorted out. New Lesson: Stay Away from TigerJet chips.

Next up, modem pool -- I wanted to know if the below config looked anywhere
near half-sane for defining in asterisk what is essentially a small pool of
four waiting modems that will handle faxes if another modem is busy:

exten => _X.,1,Dial(IAX2/iaxmodem0/${EXTEN})
exten => _X.,2,Busy
exten => _X.,3,Hangup

exten => _X.,4,Dial(IAX2/iaxmodem1/${EXTEN})
exten => _X.,5,Busy
exten => _X.,6,Hangup

exten => _X.,7,Dial(IAX2/iaxmodem2/${EXTEN})
exten => _X.,8,Busy
exten => _X.,9,Hangup

exten => _X.,10,Dial(IAX2/iaxmodem3/${EXTEN})
exten => _X.,11,Busy
exten => _X.,12,Hangup

This seemed logical, but redundant. I've seen the usage of macro's to
condense stuff like that, but I wasn't sure how to have it auto-determine
which modem to use (i.e., iaxmodem0 through iaxmodem3). In my mind, I'm
thinking of this in the form of a for loop:

for each modem in iaxmodem0..iaxmodem3
is it busy?
Yes: Continue
No: Answer
done
done

Is something like that representable in asterisk-speak?


Also pondering ahead for working on outbound faxing, I'm assuming a
[fax-out] context would be somewhat similar as the above, just a different
set of iaxmodems (4-7)?


Thanks!,

--jkinard

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services