jsa at svep.se Guest
|
Posted: Thu Feb 14, 2008 8:28 am Post subject: [asterisk-users] [SPAM] - Re: Error checking asterisk method |
|
|
Quote: | Quote: | Hi there dear users and dear developers of Asterisk!
I've got a maybe strange idea, let's see if you laugh or think it's reasonable J
I'm using Asterisk with Digium TDM800P cards with 24 lines (as an answering machine).
Each analog line can be reached through a phonenumber, since they are each connected to my telephone provider. Yes expensive I know J
The challenge:
I'd like to somehow verify that my 1) TDM800P cards and 2) the analog lines, and 3) my operator is alive and working, and I have an Idea which I wonder if will/could >work.
My first idea was to ask the zap-driver if it could detect if the line
was ok, but no function existed to do that, what I could find. Anyone
knows about one?
|
|
Quote: | What do you mean by "line is OK"?
|
I mean, (being not so educated in the telephone technology), but to know that there is DC voltage connected to my ZAP-channel. (indicating status = OK)
According to Wiki, "A calling party wishing to speak to another telephone will pick up the handset, thus operating the switch hook, which puts the telephone into active state or off hook with a resistance short across the wires, causing current to flow."
So, I suppose to know there is current flowing, would say I'm connected, but probably not guarantee that I can make calls. So this test would not give me trustworthy results. Or what do you say Tzafrir Cohen? (or others
Quote: | Quote: |
My second idea, was to try calling simply, to know if things were ok.
But, I couldn't just call any number, I had to know the number was in
use, and not disturbing anyone.
So, I called myself, or I called another of my phonelines.
|
|
Quote: | And you assume noone else calls in at the time?
|
Yes, since I only test lines, that haven't had any incoming calls for some time. Sure, someone COULD be using the line right when I'm trying to use it. How would
I know it was busy through AMI? Is it possible?
Quote: | Quote: |
So,
I'd like to use the asterisk manager interface in java to originate a
call from one ZAP-channel, calling out to my telephone provider,
And then they will direct the call back to my, but into another
ZAP-channel (since I'm calling that channel's number).
|
|
Quote: | For a basic test that the line works, try TestClient and TestServer .
Originate a call from testclient (and set there the number. And set all
incoming calls temporarily to go to TestServer (did I mention the
assumption that noone calls in?)
|
Quote: | One relatively cheap method of "temporary" is through setting a global
variable to a non-standard value. This means that the non-default value
will never last after a reload. And you can set the global even through
'core set global VARNAME VALUE' in the CLI.
|
Quote: | Check the resulting reports in /var/lib/asterisk/testresults . Make sure
all of them were generated, and that none "FAIL"-ed.
|
I will look into this testserver & testclient. Totally new stuff to me
Hope I get it working.
Thanks for the tip Tzafrir !
Nice of you!
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
_______________________________________________
-- 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 |
|