<br><br>
<div><span class="gmail_quote">On 6/27/06, <b class="gmail_sendername">trixter aka Bret McDanel</b> <<a href="mailto:trixter@0xdecafbad.com">trixter@0xdecafbad.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tue, 2006-06-27 at 15:00 +0200, Morten Isaksen wrote:<br>> Hi!<br>><br>> I have this setup:<br>
><br>> PABX <--ISDN30--> Asterisk 1 <--SIP--> Asterisk 2 <--ISDN30--> TELCO<br>><br>> Digium TE410P is used in both Asterisk 1 and 2.<br>><br>> When I set the CLIR bit on the PABX the Callerid / ANI is removed
<br>> somewhere between the SIP interface on Asterisk 1 and the SIP<br>> interface on Asterisk 2.<br>><br>Have you used a packet sniffer to ensure that its actually sent to<br>asterisk 2? If it isnt then that may be the entire problem. Before
<br>trying to diagnose anything on the isdn side I would make sure that it<br>is infact being sent correctly. Alternatively you can try some noops()<br>on asterisk2 for when a call is received to display the caller id to the
<br>console, that may be easier for some than reading sip headers.</blockquote>
<div> </div>
<div>On Asterisk 1 the ${CALLERID(num)} is correct but on Asterisk 2 CALLERID(num) is set to "Unknown" if CALLINGPRES=32. If CALLINGPRES=0 then the CALLERID(num) is passed to Asterisk 2.</div>
<div> </div>
<div>I have solved the problem this way:</div>
<div> </div>
<div>On Asterisk 1:</div>
<div> </div>
<div>exten => _[2-9]XXXXXXX,1,sipaddheader(x-clir: ${CALLINGPRES})<br>exten => _[2-9]XXXXXXX,n,setcallerpres(allowed_not_screened)<br>exten => _[2-9]XXXXXXX,n,dial(<a href="mailto:SIP/${EXTEN}@sipsrv2">SIP/${EXTEN}@sipsrv2
</a>)<br> </div>
<div>On Asterisk 2:</div>
<div> </div>
<div>exten => _X.,n,set(CLIR=${SIP_HEADER(x-clir)})<br>exten => _X.,n,gotoif($[$[${CLIR}=32]]?NOCID:CID)<br>exten => _X.,n(NOCID),SetCallerPres(prohib_not_screened)<br>exten => _X.,n(CID),dial(ZAP/g2/${EXTEN})
<br><br>-- <br>Morten Isaksen<br><a href="http://www.misak.dk/blog/">http://www.misak.dk/blog/</a> </div></div>