<br><br><div class="gmail_quote">2008/6/27 Matthew Fredrickson <<a href="mailto:creslin@digium.com">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><div></div><div class="Wj3C7c">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>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>
</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">http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=markup</a><br><br><pre> <span class="hl kwa">if</span> <span class="hl sym">((</span>p<span class="hl sym">-></span>use_callerid<span class="hl sym">) && (!</span><span class="hl kwd">ast_strlen_zero</span><span class="hl sym">(</span>e<span class="hl sym">-></span>iam<span class="hl sym">.</span>calling_party_num<span class="hl sym">))) {</span>
<span class="hl line"> 9649 </span> <span class="hl kwd">ss7_apply_plan_to_number</span><span class="hl sym">(</span>p<span class="hl sym">-></span>cid_num<span class="hl sym">,</span> <span class="hl kwa">sizeof</span><span class="hl sym">(</span>p<span class="hl sym">-></span>cid_num<span class="hl sym">),</span> linkset<span class="hl sym">,</span> e<span class="hl sym">-></span>iam<span class="hl sym">.</span>calling_party_num<span class="hl sym">,</span> e<span class="hl sym">-></span>iam<span class="hl sym">.</span>calling_nai<span class="hl sym">);</span>
<span class="hl line"> 9650 </span> p<span class="hl sym">-></span>callingpres <span class="hl sym">=</span> <span class="hl kwd">ss7_pres_scr2cid_pres</span><span class="hl sym">(</span>e<span class="hl sym">-></span>iam<span class="hl sym">.</span>presentation_ind<span class="hl sym">,</span> e<span class="hl sym">-></span>iam<span class="hl sym">.</span>screening_ind<span class="hl sym">);</span>
<span class="hl line"> 9651 </span> <span class="hl sym">}</span> <span class="hl kwa">else</span>
<span class="hl line"> 9652 </span> p<span class="hl sym">-></span>cid_num<span class="hl sym">[</span><span class="hl num">0</span><span class="hl sym">] =</span> <span class="hl num">0</span><span class="hl sym">;</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.<br>
<br><br><br><br>-- <br>Krzysztof Drewicz<br>+48 504 17 55 77