Try to ask to your telco operator to set the <b>CLIR override</b> option in the trunk group connected to your asterisk server.<br><br>All GSM and UMTS networks has this option.<br><br>Robert.<br><br><div class="gmail_quote">
On Fri, Jun 27, 2008 at 2:18 PM, Krzysztof Drewicz <<a href="mailto:krzysztofdrewicz@gmail.com">krzysztofdrewicz@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote">2008/6/27 Matthew Fredrickson <<a href="mailto:creslin@digium.com" target="_blank">creslin@digium.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">
<div><div></div><div>Krzysztof Drewicz wrote:<br>
> Hello,<br>
><br>
> i've done a basic ss7 setup with usecallingpres=yes in zapata.conf<br>
> works very good, now whould like to be "just like real telco" and need to<br>
> see the calling presentation number ever when Restriction is set in<br>
> incoming call by ss7,<br>
><br>
</div></div></div><div class="Ih2E3d">I'm trying to understand what you're asking here. So you say that when<br>
calling presentation is set to restricted, the incoming call in Asterisk<br>
has the last 3 one up to three digits are reported as 0's in<br>
extensions.conf, and you would like to ignore the calling presentation<br>
indicators to see those digits, so you can route them in the dialplan?<br>
</div></blockquote></div><br><br>Sorry for not being "easy to understood"<br>main problem:<br>my ss7 party (telco operator) is seting "Call presentation restriction" and is transminig the calling number,<br>
what i need to achieve is to _see_ the calling number no mather if clip is set or is not set by ss7 network.<br><br>for last digits, this is only common scenario, when the end customer on the other side of ss7 network uses "CLIR on demand" and then in the ss7 network we se the "CLIR" flag and number like +AB CDE FG 00 (only example). But for me seeing the calling number is a issue right now, i don't care if it's realy the ...FG 00 or ...FG XY (this is _easy_ to achive in dialplan logic).<br>
<br>found this line of code:<br><a href="http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=markup" target="_blank">http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=markup</a><br><br>
<pre> <span>if</span> <span>((</span>p<span>-></span>use_callerid<span>) && (!</span><span>ast_strlen_zero</span><span>(</span>e<span>-></span>iam<span>.</span>calling_party_num<span>))) {</span>
<span> 9649 </span> <span>ss7_apply_plan_to_number</span><span>(</span>p<span>-></span>cid_num<span>,</span> <span>sizeof</span><span>(</span>p<span>-></span>cid_num<span>),</span> linkset<span>,</span> e<span>-></span>iam<span>.</span>calling_party_num<span>,</span> e<span>-></span>iam<span>.</span>calling_nai<span>);</span>
<span> 9650 </span> p<span>-></span>callingpres <span>=</span> <span>ss7_pres_scr2cid_pres</span><span>(</span>e<span>-></span>iam<span>.</span>presentation_ind<span>,</span> e<span>-></span>iam<span>.</span>screening_ind<span>);</span>
<span> 9651 </span> <span>}</span> <span>else</span>
<span> 9652 </span> p<span>-></span>cid_num<span>[</span><span>0</span><span>] =</span> <span>0</span><span>;</span></pre>
<br>IF i get it good, this line checks for CLIR bit and if it's on it says to channel driver "calling number restricted".<br>I whould like to pass the calling number, without checking for CILR bit.<br><br>Hope that you understood the above? if not please say and i will do an example of call scenario.<div>
<div></div><div class="Wj3C7c"><br>
<br><br><br><br>-- <br>Krzysztof Drewicz<br>+48 504 17 55 77
</div></div><br>_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br></blockquote></div><br>