Greeting,<div>I am trying to setup PLAR signalling in asterisk. I have modified the FXSLS TX bits in dahdi-base.c on line 2580, and I can make calls.</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>.sig_type = DAHDI_SIG_FXSLS,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>.bits[DAHDI_TXSIG_ONHOOK] = DAHDI_BITS_ABCD, /*changed by for PLAR*/</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>.bits[DAHDI_TXSIG_OFFHOOK] = (0), /*changed by for PLAR*/</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>.bits[DAHDI_TXSIG_START] = DAHDI_BITS_ABCD, /*changed by for PLAR*/</div></div><div><br></div><div>When I got to change the rx, its a bit more complex. I have learned from this list that dahdi_rbsbits() handles the rx bits, but my changes seem to have no effect. Does anyone have a good understanding of this function? I would appreciate any help you can provide.</div>
<div><br></div><div><br></div><div><div>case DAHDI_SIG_FXSLS:</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if (!(cursig & DAHDI_BBIT)) { /*Dennis RINGING */ /*<----- I think this is checking if the state is different from a set value? needs clarification*/</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>/* Check for ringing first */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_RING);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>break;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if ((chan->sig != DAHDI_SIG_FXSLS) && (cursig & DAHDI_ABIT)) { /*<------ Why is it checking DAHDI_SIG_FXSLS? do I need to modify this to be 1111 also?*/</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span> /* if went on hook */</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_ONHOOK); /*<----------I think this is passing it to a function that reacts to the signal in this case the onhook signal?*/</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>} else {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_OFFHOOK); /* <------ same here but with the off hook? */</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>break;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> case DAHDI_SIG_CAS:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>/* send event that something changed */</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>__qevent(chan, DAHDI_EVENT_BITSCHANGED);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>break;</div></div><div><br></div><div>Thanks</div><div>Dennis</div>