<span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Greeting,</span><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
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 style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><div><span style="white-space:pre-wrap">                        </span>.sig_type = DAHDI_SIG_FXSLS,</div><div><span style="white-space:pre-wrap">                        </span>.bits[DAHDI_TXSIG_ONHOOK]  = DAHDI_BITS_ABCD, /*changed by  for PLAR*/</div>


<div><span style="white-space:pre-wrap">                        </span>.bits[DAHDI_TXSIG_OFFHOOK] = (0), /*changed by  for PLAR*/</div><div><span style="white-space:pre-wrap">                        </span>.bits[DAHDI_TXSIG_START]   = DAHDI_BITS_ABCD, /*changed by for PLAR*/</div>


</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
When I go 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 style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><div>case DAHDI_SIG_FXSLS:</div><div><span style="white-space:pre-wrap">                </span>if (!(cursig &amp; DAHDI_BBIT)) {      /*Dennis RINGING  */  /*&lt;----- I think this is checking if the state is different from a set value? needs clarification*/</div>


<div><span style="white-space:pre-wrap">                        </span>/* Check for ringing first */</div><div><span style="white-space:pre-wrap">                        </span>__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_RING);</div><div><span style="white-space:pre-wrap">                        </span>break;</div>


<div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span>if ((chan-&gt;sig != DAHDI_SIG_FXSLS) &amp;&amp; (cursig &amp; DAHDI_ABIT)) {  /*&lt;------ Why is it checking DAHDI_SIG_FXSLS? do I need to modify this to be 1111 also?*/</div>


<div><span style="white-space:pre-wrap">                        </span>    /* if went on hook */</div><div><span style="white-space:pre-wrap">                        </span>__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_ONHOOK);  /*&lt;----------I think this is passing it to a function that reacts to the signal in this case the onhook signal?*/</div>


<div><span style="white-space:pre-wrap">                </span>} else {</div><div><span style="white-space:pre-wrap">                        </span>__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_OFFHOOK);  /* &lt;------ same here but with the off hook? */</div><div>


<span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span>break;</div><div><span style="white-space:pre-wrap">        </span>   case DAHDI_SIG_CAS:</div><div><span style="white-space:pre-wrap">                </span>/* send event that something changed */</div>


<div><span style="white-space:pre-wrap">                </span>__qevent(chan, DAHDI_EVENT_BITSCHANGED);</div><div><span style="white-space:pre-wrap">                </span>break;</div></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Thanks</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Dennis</div>