Hi I will describe as best I can.
I am using Asterisk 1.4 with DAHDI 2.4. We have merged two PRI lines i.e now we have 60 lines on one span.
I want to jump call from one channel to other, i.e. I call is received on channel no. 3 of dahdi then I want to switch this call to channel number 32 i.e. on the second number(not for all, only for some specific cases).
I use Dial(DAHDI/G1) to dial the free channel available from last, but it does not work
You can create 2 groups and dial to dahdi/g2.
See default chan_dahdi.conf.sample for examples.
You also able put some channels to more then 1 groups(for example to group 0 all and to group1 only pri span 1)
Related
I am trying to start a project in which I would create my own app on iOS using Swift to communicate with an Arduino 101 to control multiple LEDs. I have used this project as a base point.
After getting this to work with my custom app, I wanted to figure out how to make this work with multiple LEDs instead of just one. Currently, I am just performing writeCharacteristic to send a 1 or a 0 to the Arduino depending on which button I press (ON/OFF). However, for the new project, I need to be able to select one of the lights (select one of four output pins), and write a 1 or a 0 to turn it on and off. I didn't know what approach I should take to do this.
I don't need any code, just suggestions on how I can make this work through swift/Arduino code.
Thanks.
It's all explained in the manual.
https://www.arduino.cc/en/Reference/CurieBLE
Service design patterns
A characteristic value can be up to 20 bytes long. This is a key
constraint in designing services. Given this limit, you should
consider how best to store data about your sensors and actuators most
effectively for your application. The simplest design pattern is to
store one sensor or actuator value per characteristic, in ASCII
encoded values.
So either create a separate BLEBoolCharacteristic instance for each LED or combine the switch state of all leds in the same BLECharacteristic. For example you could encode 8 LED states in a single byte (1 LED per bit).
Do whatever you prefer. But read manuals...
I have this situation where I have 2 numbers say A and B which is forwarded to same DID number so the issue is that I want to identify if the call is forwarded from A or B when the caller calls in to specific number.
I have researched a bit and found about ${CALLERID(rdnis)} in asterisk but when am trying to use it gives a blank output. I also tried the DumpChan() command it also gave a (N/A) for rdnis.
Is there any way I can get to know in my dialplan that call is forwarded from A or B ?
I dont have sip my line is normal PSTN. The problem is that the number mentioned in the question A and B are mobile number which are forwarded to DID number and I can only control the code after the DID is called but I cannot identify through which number A or B the call is forwarded on DID.
If your number is sip, you can do
asterisk -r
sip set debug on
After that call in. If you see forwarded number in packet, you can try get it using SIP_HEADER function.
If there is no any difference in two calls, you can't recognize did and better use cheap voip did for second number.
I have 10 extensions grouped into RingGroup with number "100" and "ringall" strategy. Only 4 of 10 extensions online. Someone call to 100 and 4 online extensions gets call and starts ringing. So, how can I get this call if one (or more) of 6 offline extensions gets online (until call is active)?
Probably you should use queue for such functionality, ring group is not really good for such case, but there is a hack to achieve what you need even with ring group.
First make sure that destination if no answer is same group. then make sure that "Ring Time" is configured for quite low value like 10 seconds.
In this case when call hits ring group it will ring only 4 available extensions for 10 seconds, after 10 seconds it will go back to same group and it will ring all available extensions at that moment, so if 1 additional extensions will go online, then it will call 5 extensions for 10 seconds and etc.
I got some problem while working with arduino due.From what i know each timer channel has 3 compare registers,2 i/o lines (for A and B compares) and one Interrupt number.
Now is there a way to raise specific interrupt for A,B,C compares belonging to same channel?
I am confused as there is only one interrupt number attached to one channel while three events are happening(A compare ,B compare ,C compare) per channel.
Is there a way to select a particular procedure to be executed for a particular compare event.
(i.e. selection of a particular procedure under one interrupt number)
Note: I am working in 'Waveform Mode'.
Thanks in advance.
I recommend reading the following post where cmaglie details that each of the 9 possible interrupts (3 channels in each of the 3 timer counters) can generate a unique interrupt, independent of the others.
In the post there is a nice explanation and example of setting up the resources. Along with a table that details which parameter correspond to appropriate settings.
This is not a programming question per se. I am trying to build a system which consists of the following:
User calls system using regular land line
Some processing is done by asterisk
Call is forwarded to an external number (another landline/mobile phone)
Now I would like atleast 2 simultaneous lines on which the user can call. I would like to know the following:
Will the TDM410 work for what I am trying to achieve?
Since I want call forwarding, do I need an extra line for that? Or can I do it on the same line? e.g. for one user do I need one incoming line and one outgoing line or can I do both receiving and forwarding on the same line?
I have both asterisk books but am still unclear as to which card to purchase. Is the TDM410 with 4 FXO the right one? I am thinking of TDM410 because it has 4 lines so that I can use two for incoming and two for outgoing. Am I right? Can someone please point me to a link/online store?
Thank you very much for your time.
PS- I do not wish to use SIP. I want to use POTS for all my calls (incoming and outgoing)
The TDM400 with 4 FXO modules will work for what you need.
When you receive a call on one line, then that line is busy and you must use a different line to forward the call (Asterisk will bridge the calls but it needs 2 lines for that). You can buy them directly from Digium.
You need at least 3 landlines if you want to be able to receive calls from 2 lines; the third line will be the one you use to forward the calls, but only one call can be forwarded at at time and the other person will have to wait. If you don't want that then you need 4 landlines.