[VoIP] Can this be done?
Shane Young
voiptandem at shaneyoung.com
Tue Jan 30 15:32:10 CST 2007
Ok, I've given this some thought. This ranks up there with hooking a
fan motor to a magneto generator to ring the phones on your 1A2 system
BUT yes, you could do it. It's asterisk, it can do just about
anythinng.
If you need more details than concepts, let me know:
In your incoming context, use the "system" command to fire off a shell
script to build a ".call" file and move the .call file into
/var/spool/asterisk/outgoing.
The call file would look something like this:
Channel: sip/9999 at 1.2.3.4
MaxRetries: 0
RetryTime: 0
WaitTime: 3
Context: do-nothing
Extension: s
Priority: 1
When that file is moved into /var/spool/asterisk/outgoing, Asterisk
will read it and place a call to sip/9999 at 1.2.3.4 and wait 3 seconds
for an answer.
The context "do-nothing" in your dialplan should never be reached but
in case it is, it should look something like this:
[do-nothing]
exten => s,1,Answer
exten => s,2,wait(3)
exten => s,3,Hangup
Try that and let me know how it works.
--Shane
Quoting Paul Wills <pdwills at verizon.net>:
> The intent is to make something in one context cause a signal to
> appear at another "apparantly" unrelated channel. The purpose is to
> trigger the ANI unit so that it will pass the ANI number into the
> Asterisk box via the E&M port. The incoming context from the ANI
> then saves the variable which is then picked up by the "real" call
> as a CallerID number.
>
> There are other ways to do it with the DTR lead on a serial port but
> it would be nice to actually use the E&M leads.
>
> Actually, if you could signal the E&M port and then read in the
> digits it sends, that would be perfect but that may be asking too
> much.
>
> Basically, with this small detail solved, it will be possible to
> implement ANI without a T1 and channel bank. The Cisco 3810 is a
> rather versatile beast!
>
> PDW
>
>> From: Shane Young <voiptandem at shaneyoung.com>
>> Date: 2007/01/30 Tue PM 01:58:11 CST
>> To: voip at ckts.info
>> Subject: Re: [VoIP] Can this be done?
>
>> you want to push a button, or do a little dance or something other
>> than picking up a phone and making a call to the other end, but once
>> you've started calling the other end, hang up ?
>>
>> yes, you can do that.
>>
>> I'm not sure I understand the part about trying to tie up a channel so
>> you can get a different channel. Why not just pick the channel you
>> want?
>>
>>
>>
>>> Here's one for the Asterisk experts:
>>>
>>> Is it possible to signal a distant extension without involving a
>>> calling extension?
>>>
>>> Specifically, I would like to make a one second "attempted" call to
>>> an E&M port. This would cause the E lead to momentarily go
>>> "active." By doing it as part of a context, I tie up the incoming
>>> channel for about five seconds before I can connect it to the
>>> channel I *really* want to connect it to.
>>>
>>> Ideally, I would like to call a routine to produce a quick operation
>>> of a distant E lead without getting any other channel involved.
>>>
>>> Does it sound possible?
>>>
>>> PDW
>
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>
More information about the VoIP
mailing list