<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I did not find a way to do that in chan_ss7.</DIV>
<DIV>However you can use the hunting_policy in the linkset definition to try achieve that in a way</DIV>
<DIV> </DIV>
<DIV>you can use </DIV>
<DIV>hunting_policy => seq_lth </DIV>
<DIV>to use the first E1 to send calls</DIV>
<DIV> </DIV>
<DIV>if you want to use the second E1 then use </DIV>
<DIV>hunting_policy => seq_htl</DIV>
<DIV> </DIV>
<DIV>This will only ensure that the first 30 outbound calls go to the E1 of your choice.</DIV>
<DIV>Of course you can set a global counter that you increment as the calls are coming in and decrement on hangup and then check to make sure that only 30 calls are sent. This will ensure that only 1 E1 is used for oubound.</DIV>
<DIV> </DIV>
<DIV>Exmaple to use the first E1:</DIV>
<DIV> </DIV>
<DIV>in ss7.conf use</DIV>
<DIV>
<DIV>hunting_policy => seq_lth </DIV>
<DIV>in the linkset definition</DIV></DIV>
<DIV> </DIV>
<DIV>exten => _X.,1,SetGlobalVar(CALLCOUNTER=${MATH(${CALLCOUNTER}+1,int)})<BR>exten => _X.,2,GoToIf($[${CALLCOUNTER} > 30] ? 3:4)</DIV>
<DIV>exten => _X.,3,Dial(SS7/MSC1/00${EXTEN}|60)<BR>exten => _X.,4,Hangup()</DIV>
<DIV> </DIV>
<DIV>exten => h,1,SetGlobalVar(CALLCOUNTER=${MATH(${CALLCOUNTER}-1,int)})<BR><BR>Regrads,</DIV>
<DIV> </DIV>
<DIV>Antoine Megalla.<BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> aka <akablast@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> asterisk-ss7@lists.digium.com<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, May 26, 2009 12:57:30 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [asterisk-ss7] send call via define cic range<BR></FONT><BR>Hi<BR><BR>i am using chan_ss7 1.1 to connect ss7 & <A href="http://asterisk.in/" rel=nofollow target=_blank>asterisk.in</A> my configuration there has a two links(E1 s) to connect asterisk <A href="http://ss7.is/" rel=nofollow target=_blank>ss7.is</A> there has any way to handle outsides calls in link wise.i try to configure asterisk this way but no luck for this.(SS7/link1/$OUTNUM)<BR></DIV></DIV></div><br>
</body></html>