Re: [Asterisk-Users] Cisco 7960 SIP Images

2004-03-29 Thread Roderick Montgomery
 want a different software
load (SIP vs. SCCP), let me know. There are legitimate ways to do all these
things. Just don't purchase used hardware, no software license, no support,
and then expect free software updates to rain down in perpetuity.

--
Roderick Montgomery   [EMAIL PROTECTED]
Account Managerphone 256-713-5356   fax 256-864-0932
Information Engineeringweb  http://www.info-engineering.com/
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] FS: Adtran TotalAccess 850 Channel Bank,Router,4x4FXS

2004-02-16 Thread Roderick Montgomery
For Sale:

Adtran 850 Channel Bank with Router, running latest firmware A.04.04.26
Four FXS cards (that's 16 FXS ports for 16 separate asterisk extensions).
This is a great channel bank for Asterisk, when paired with a T100P card.
Auction ends in about six hours, currently at $370.

  http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=3077414453

Thanks,
rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk Documentation

2003-10-01 Thread Roderick Montgomery
According to [EMAIL PROTECTED]:
 
 Does anybody have any thoughts on this plan, or better ideas?
 Negative/positive thoughts about Doxygen?
 Most importantly, is anyone else working on something along these lines
 already?

Daniel,

Documentation is much-needed, and I'm glad to hear that there's someone else
working on it. I'm working privately on an Asterisk Guide, with a target
audience of administrators and users. Aside from the AGI interface for
integration with basic scripting languages, I'm not focusing at all on
documenting Asterisk code development. It's not something I understand well
myself, the target audience of Asterisk developers is small relative to
admins and users, and development is already well-supported with the
Asterisk-Dev list.

Printed documentation seems most lacking for new users wanting to install
Asterisk and set up a basic dialplan. By my estimation, many of the
newcomers interested to Asterisk will have some basic knowledge of Unix or
Linux, familiarity with the concept of OpenSource, and a willingness to try.
I plan to provide a book that will guide them to a successful, usable
installation with diagrams, examples, and design hints. The handbook, the
wiki, the mailing list, and various personal websites with asterisk tips and
examples are a great help, but separately do not provide a cohesive resource
for teaching or reference. Frequently on the mailing list we see questions
that are answered in one resource, while the well-intentioned newbie was
looking at other Asterisk resources. I am attempting to write a
comprehensive guide for administrators and users.

rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Google newsgroup or Forum setup.

2003-09-30 Thread Roderick Montgomery
According to Troy Settle:
 
 Why do they do that?  Quite possibly because they, like myself, hate
 having to scroll through pages and pages of quotes to get to the reply,
 which isn't always clear where it might start.

Troy, you're not complaining about bottom-posting; you're complaining about
folks that don't trim their quotes down to context. See how I left out all
of your previous post except the relevant question above? You only need to
quote enough of the previous message to gain context for the reply -- only
lazy folks quote the entire message, reposting the entire thread with every
new reply. Your replies go below, so reading the message from top to bottom
is in chronological order.

rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] CDR Web Search Frontend

2003-09-30 Thread Roderick Montgomery
[snip happens]
According to John Todd:
 On Tue, 30 Sep 2003 00:02:06 -0700
   Paul Crick [EMAIL PROTECTED] wrote:
 
  oh my god, who's going to collate a list of Names/Area-codes?? Stuffed
  if I'm doing it. :)
 
 Or, at least one of these sources might have the data for free:
 
 (harvested off NANOG today)
 
 http://puck.nether.net/npa-nxx/
 http://www.cctec.com - Search - Search for info on NPA/NXX
 http://www.numberingplans.com
 http://www.telcodata.us/telco/telco.jsp

This afternoon I used the list of NPAs (Area Codes) at
URL:http://docs.nanpa.com/cgi-bin/npa_reports/nanpa?function=list_npa_geo_number
and requested the XML dump for each NPA from Telcodata.us, then compressed
the tar file of all of them. FYI, I rate-limited wget and put a sleep in
the shell loop so as not to abuse their network's generosity.

If someone wants the entire thing, I've temporarily left it at
URL:http://thecomplex.com/npanxx_info.tar.gz.

I figured that NPAs change infrequently enough to warrant caching this info
with the CDR web interface, rather than calling it from some remote web
database.

rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] PHP Gui for Asterisk (AGI questions)

2003-03-18 Thread Roderick Montgomery
According to James Sizemore:
 
 Problem will all XML configs:
 1. They are nearly imposable for a human to read, for any non trivial
 config.  

It's about like reading HTML source -- it doesn't have prose-like flow, but
it can be read and understood without a complex editor. In my experience,
the editor's most crucial function isn't convenience, it's enforcing the
XML DTD so a syntax mistake doesn't break or confuse your application.


 3. I personal find it easer to parse a human readable config file, then deal
 with any XML library that I have ever seen.

As do many other asterisk administrators. In my small-scale asterisk system,
it's not a problem to deal with asterisk's config format. But when scaling
up to a large network, I could see the need to develop tools specifically
for asterisk Configuration Management (CM). Currently, any management
scripts would need to deal properly with asterisk's unique config format.
XML might assuage this possible future headache.

Said another way, I didn't know about CM tools when I first learned Cisco's
IOS using a couple low-end routers. I didn't really want to deal with the
overhead of CM when I managed a network of a dozen or so Cisco routers.
However, the CM idea became spiffy when my network grew to about 60 network
elements, and absolutely necessary when consulting for a global
route-switched network of hundreds of network elements.


 5. So what was the point of XML again? They is none!

Tell that to the folks that have used XML to escape the hell that is EDI. 
XML makes a lot of sense when data needs to be freely exchanged between/
among environments that do not otherwise share a common data schema. So far,
nobody has described another environment with which asterisk config data
should be shared... so yes, XML seems a buzzword for buzzword's sake at this
point.

I suggest that since many asterisk configs are read only at startup, the
benefit of having XML configs is somewhat limited to configs that respond to
the reload CLI command. Further, asterisk-familiar programming resources
are constrained to a small group of folks, whose time is quite valuable both
to their companies and to asterisk users that await hard features and bug
fixes. XML config support falls WAY down on the priority list from where I'm
standing.

If XML is important to your needs, why not write a translation script to
parse XML and write the asterisk configs? Scripting languages abound and are
appropriate to the task. Obviously, the transaltion script could grab your
XML and write fresh asterisk configs every time you started asterisk.

Just a thought,
rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Mailing List Archives for new lists?

2003-03-14 Thread Roderick Montgomery
The list archives at URL:http://www.marko.net/asterisk/archives/ seem
to've stopped archiving message on Feb 13. Will the new messages to
asterisk-dev and asterisk-users be in a separate archive, or the old message
somehow merged into a new archive?

I know it's not a top priority, but having a searchable history of the
mailing list is about the best ongoing documentation we have. =]

Thanks,
rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Intergrate with MySQL

2003-03-13 Thread Roderick Montgomery
According to Ajit Kallingal:
 Hello All,
 Can the current Asterisk be integrated with mySQL to query a database ?
 I am looking at a  typical IVR scenario where the user punches a product
 code and the database query will determine if the product is available or
 not. The reply would be number of items available , else none.

Sure, something like the following AGI script would work. Just grab the Perl
AGI module from URL:http://asterisk.gnuinter.net/, drop the following in
your extensions.conf...

exten = s,1,Answer
exten = s,2,Wait,1
exten = s,3,AGI,script.agi

...and put the following as script.agi in /var/lib/asterisk/agi-bin:

---
#!/usr/bin/perl

use Asterisk::AGI;
use DBI;

my $AGI = new Asterisk::AGI;
my %input = $AGI-ReadParse();

### Play welcome.gsm, greeting the caller 

$AGI-stream_file('welcome');

### Play product-code-prompt.gsm, instructing the caller to enter the 
### product code, then allow ten seconds to enter four-digits

$prodcode = $AGI-get_data('product-code-prompt',1,4);

$quantity = quan_by_code($prodcode);

if ($quantity != 0) {
$AGI-stream_file('there-are');
$AGI-say_digits($quantity);
$AGI-stream_file('available');
} else {
$AGI-stream_file('none-available');
}

$AGI-stream_file('goodbye');
$AGI-hangup;
exit;




sub quan_by_code {
### Takes a product code as input, then returns the quantity available.
my $code = shift;
my $dbh = open_connection();
my $sql = SELECT code, quantity FROM product WHERE code=\'$code\' LIMIT 1;
my $sth = $dbh-prepare($sql);
$sth-execute or die Unable to execute SQL query: $dbh-errstr\n;
my $row = $sth-fetchrow_arrayref;
$sth-finish;
$dbh-disconnect;
if ( ($code == $row-[0])  ($code != 0) ) {
return $row[1];
} else {
return 0;
}
}

sub open_connection {
my $dsn = mysql:dbname:localhost;
my $username = 'dbusername';
my $password = 'dbpassword';

return DBI-connect(DBI:$dsn,$username,$password) or die $DBI::errstr;
}
---


Of course, you'll need to record prompts and responses for:
  welcome
  product-code-prompt
  there-are
  available
  none-available
  goodbye


Hope this get you started,
rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] X100P question about odd behavior

2003-03-13 Thread Roderick Montgomery
According to Jim Archer:
 
 Well, the line has two pairs on it, on the red/green pair and the 
 blk/yellow pair.  I am not sure which pins those correspond to on the 
 connector so I'm sure your right (it seems the inner pins are one pair and 
 the outer pins another).

I once heard a phone wiring tech mumble the following mnemonic, and I've
never been able to forget it: Christmas Tree, Bumble Bee.

The red and green pair is for the primary line (the inner two pins), and the
yellow and black pair is for the seconadry line (the outer two pins).

rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Known SIP - NAT Solutions?

2003-03-05 Thread Roderick Montgomery
According to Jon Pounder:
 When situations like this arise all the time, why is there such a delay in
 getting ipv6 rolled out when it solves all these problems ?

How does IPv6 solve address translation problems? If you mean to suggest
that more addresses would eliminate the need for NAT, understand that
address scarcity is not the only reason for address translation. Not wanting
to start a nanog-style flamewar, there are plenty of IPv4 addresses rotting
away, unused.

Even if IPv6 were fully deployed, we'd still see address translation for
basement multihoming, smooth network migration, and brain-dead security on
the cheap. And there would still be uber-paranoid firewalls that are
misconfigured or policy-bound to be hostile to SIP and h.323 traffic.

Other services have demonstrated that SIP can be successful with a user
agent behind an IPv4 NAT. I'm glad to read that work is being done to allow
asterisk to deal with NATted user agents; my ATA-186 is about to declare
civil war against my NATting wireless access point.

rm
-
 Roderick Montgomery   [EMAIL PROTECTED]   URL:http://thecomplex.com/
the fool stands only to fall, but the wise trip on grace... [Sarah Masen]
-
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users