Bialal,<br><br>what hw you are using  and what is the h/w files. ?<br clear="all"><font face="Verdana, sans-serif"><font size="2"><font color="#000000"></font></font></font><br>
<br><br><div class="gmail_quote">On Tue, Oct 18, 2011 at 5:23 PM, bilal ghayyad <span dir="ltr">&lt;<a href="mailto:bilmar_gh@yahoo.com">bilmar_gh@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Dears;<br>
<br>
We contacted the Telecom provider and they confirmed multiple times that the DID service is enabled, but again still the caller id does not appear as we need (it is always appearing as the primary number). I tried to set the CALLERDID(num) to be 40, 1040, 5631040 and 065631040 without any result.<br>


<br>
Where could be the problem?<br>
<br>
Maybe I have to use CALLERID(ANI)? Well, how it should be written exactly?<br>
<br>
What other things I have to do or I can try to resolve the problem?<br>
<br>
Regards<br>
<font color="#888888">Bilal<br>
</font><div class="im"><br>
---------------<br>
&gt;<br>
&gt; Hi<br>
&gt;<br>
&gt; try to add this<br>
&gt;<br>
&gt; exten =&gt; _90ZXXXXXXXX,1,Set(CALLERPRES()=allowed)<br>
&gt; exten =&gt; _90ZXXXXXXXX,n,Set(CALLERID(num)=5631040)<br>
&gt;<br>
&gt; if you get the same result that is means that you don&#39;t<br>
&gt; have permission from<br>
&gt; your provider<br>
&gt;<br>
&gt;<br>
&gt; kind regards<br>
&gt;<br>
&gt; 2011/9/26 C F &lt;<a href="mailto:shmaltz@gmail.com">shmaltz@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Confirm with your provider that allow you to set<br>
&gt; caller id on outbound.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Sun, Sep 25, 2011 at 1:59 PM, bilal ghayyad &lt;<a href="mailto:bilmar_gh@yahoo.com">bilmar_gh@yahoo.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; Dear;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; By the way, the asterisk version is: 1.8.4.2<br>
&gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; Yes I tried Set(CALLERID(num)=5631040) as shown<br>
&gt; in the below dialing, and<br>
&gt; &gt; no success. Also I tried Set(CALLERID(num)=1040) and I<br>
&gt; tried<br>
&gt; &gt; Set(CALLERID(num)=065631040) as the city code is 06<br>
&gt; and when we call any<br>
&gt; &gt; mobile, it is appearing 065631040, but all of this did<br>
&gt; not work.<br>
&gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; Do I have to use SetCallerPres? What is the<br>
&gt; value?<br>
&gt; &gt; &gt;<br>
</div><div class="im">&gt; &gt; &gt; The E1 is located in Jordan and it is PRI with 30<br>
&gt; channels. Is there any<br>
&gt; &gt; thing need to be set other than Set(CALLERID(num)? I<br>
&gt; am afraid that I have<br>
&gt; &gt; to set a specific value for SetCallerPress !<br>
&gt; &gt; &gt;<br>
</div><div><div></div><div class="h5">&gt; &gt; &gt; Well, I have also a question: What should I set<br>
&gt; the callerid when I am<br>
&gt; &gt; configuring the IP Phone in the sip.conf?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; By the way: what is the difference between using<br>
&gt; &gt; Set(CALLERID(num)=5631040) and the callerid in the<br>
&gt; sip.conf?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Kindly find below my dialing plan:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; exten =&gt;<br>
&gt; _90ZXXXXXXXX,1,Set(CALLERID(num)=5631040)<br>
&gt; &gt; &gt; exten =&gt;<br>
&gt; &gt;<br>
&gt; _90ZXXXXXXXX,2,MixMonitor(${CHANNEL}${EXTEN:1}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}.wav)<br>
&gt; &gt; &gt; exten =&gt;<br>
&gt; _90ZXXXXXXXX,3,Dial(${PSTNTRUNK}/${EXTEN:1})<br>
&gt; &gt; &gt; exten =&gt;<br>
&gt; _90ZXXXXXXXX,4,Playback(vm-nobodyavail)<br>
&gt; &gt; &gt; exten =&gt; _90ZXXXXXXXX,5,Hangup()<br>
&gt; &gt; &gt; exten =&gt; _90ZXXXXXXXX,104,Congestion() ; if no<br>
&gt; channel available<br>
&gt; &gt; &gt; exten =&gt; _90ZXXXXXXXX,105,Hangup()<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; -----------------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Set(CALLERID(num)=5631040)<br>
&gt; &gt; &gt;&gt; add this before the Dial command.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; On Sat, Sep 24, 2011 at 4:03 PM, bilal<br>
&gt; ghayyad &lt;<a href="mailto:bilmar_gh@yahoo.com">bilmar_gh@yahoo.com</a>&gt;<br>
&gt; &gt; &gt;&gt; wrote:<br>
&gt; &gt; &gt;&gt; &gt; Hi All;<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; The DID range that we took from the<br>
&gt; telecom starts<br>
&gt; &gt; &gt;&gt; from 1030 and end by 1059, now whenever we<br>
&gt; place a call, the<br>
&gt; &gt; &gt;&gt; destination see the number 5631030. I gave<br>
&gt; the phone<br>
&gt; &gt; &gt;&gt; extension 1040, and when I call, still the<br>
&gt; destination see<br>
&gt; &gt; &gt;&gt; the number is 5631030?<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; Kindly find below the configuration of<br>
&gt; the extension<br>
&gt; &gt; &gt;&gt; 1040, please what I have also to configure so<br>
&gt; when this<br>
&gt; &gt; &gt;&gt; extension make a call, the destination see it<br>
&gt; 5631040?<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; [1040]<br>
&gt; &gt; &gt;&gt; &gt; type=friend<br>
&gt; &gt; &gt;&gt; &gt; host= dynamic<br>
&gt; &gt; &gt;&gt; &gt; callerid=1040<br>
&gt; &gt; &gt;&gt; &gt; disallow=all<br>
&gt; &gt; &gt;&gt; &gt; allow=alaw<br>
&gt; &gt; &gt;&gt; &gt; allow=ulaw<br>
&gt; &gt; &gt;&gt; &gt; allow=g729<br>
&gt; &gt; &gt;&gt; &gt; context=External<br>
&gt; &gt; &gt;&gt; &gt; dtmfmode=auto<br>
&gt; &gt; &gt;&gt; &gt; nat=no<br>
&gt; &gt; &gt;&gt; &gt; qualify=no<br>
&gt; &gt; &gt;&gt; &gt; canreinvite=yes<br>
&gt; &gt; &gt;&gt; &gt; username=1040<br>
&gt; &gt; &gt;&gt; &gt; secret=*******<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; Regards<br>
&gt; &gt; &gt;&gt; &gt; Bilal<br>
<br>
</div></div><div><div></div><div class="h5">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>