Thanks For reply A.J sir. <br>no result with this sir<br><br clear="all"><font face="Verdana, sans-serif"><font size="2"><font color="#000000">Best
Regards, <br><br>Mahesh Katta</font><br><font color="#ff9900"><b>BUZZ</b></font><font color="#000000"><b>WORKS</b></font><font color="#000000">
Business Services Private Limited<br></font><font color="#999999">BANGALORE
</font><font color="#000000">| </font><font color="#999999">CHENNAI </font><font color="#808080">|
</font><font color="#999999">HYDERABAD </font><font color="#000000">|
</font><font color="#ff9900">MUMBAI| </font><font color="#999999">DELHI<br></font><font color="#000000">201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E) Mumbai 400069</font><font color="#666666"><br>
</font><font color="#ff9900">GSM</font><font color="#000000">
+91.97029.70779 | </font><font color="#ff9900">Phone </font><font color="#000000">+91.22.4229.2634
| </font><font color="#ff9900">Fax </font><font color="#000000">+91.22.4229.2634<br></font><font color="#ff9900">Web</font><font color="#000000">
<a href="http://www.buzzworks.com/" target="_blank">http://www.buzzworks.com<br></a></font></font></font><br>
<br><br><div class="gmail_quote">On Tue, Sep 6, 2011 at 6:49 PM, A J Stiles <span dir="ltr"><<a href="mailto:asterisk_list@earthshod.co.uk">asterisk_list@earthshod.co.uk</a>></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;">
<div class="im">On Tuesday 06 September 2011, mahesh katta wrote:<br>
> Hi list,<br>
> I have 20channels PRI line from Airtel. and I have 30channels digium PRI<br>
> card. and I am using asterisk1.4 with goautodial.<br>
> I need to configure DID's for every extension with sip.<br>
> which Parameters need to add in asterisk and which parameters enable from<br>
> Airtel PRI line for this DID's. can you help me .<br>
<br>
</div>When an incoming call arrives from the ISDN line, look in ${EXTEN} -- this<br>
will contain some representation of the number. It may be missing the STD<br>
code, or just the initial 0.<br>
<br>
All* you need to do is implement a rule to translate the incoming ${EXTEN} on<br>
an incoming call, to an extension number, and implement this in your dialplan<br>
in the conjtext in which calls arrive from the PSTN. For example, if you<br>
always want the "internal" number to be "2" followed by the last 2 digits of<br>
the "external" number, you could use this minimal example:<br>
<br>
[from-pstn]<br>
exten => _X.,1,Set(LAST_TWO=${EXTEN:-2})<br>
exten => _X.,n,Dial(SIP/2${LAST_TWO})<br>
exten => _X.,n,Hangup()<br>
<br>
[*] OK, that's not *quite* all. When you make an outgoing call, you need to<br>
set the caller ID to match the "external" number the person needs to dial to<br>
call you back:<br>
<br>
[outgoing]<br>
exten => _X.,1,Set(LAST_TWO=${EXTEN:-2})<br>
exten => _X.,n,Set(CALLERPRES()=allowed)<br>
exten => _X.,n,Set(CallerID(num)=${PREFIX}${LAST_TWO})<br>
exten => _X.,n,Dial(${ISDN}/${EXTEN})<br>
exten => _X.,n,Hangup()<br>
<br>
${ISDN} and ${PREFIX} need to be defined in the globals section:<br>
<br>
[globals]<br>
ISDN=DAHDI/g1<br>
PREFIX=013322689<br>
; this assumes numbers start (01332) 2689xx<br>
<br>
<br>
--<br>
AJS<br>
<br>
Answers come *after* questions.<br>
<br>
--<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>
</blockquote></div><br>