send call via define cic range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I did not find a way to do that in chan_ss7.
However you can use the hunting_policy in the linkset definition to try achieve that in a way

you can use 
hunting_policy => seq_lth 
to use the first E1 to send calls

if you want to use the second E1 then use 
hunting_policy => seq_htl

This will only ensure that the first 30 outbound calls go to the E1 of your choice.
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.

Exmaple to use the first E1:

in ss7.conf use
hunting_policy => seq_lth 
in the linkset definition

exten => _X.,1,SetGlobalVar(CALLCOUNTER=${MATH(${CALLCOUNTER}+1,int)})
exten => _X.,2,GoToIf($[${CALLCOUNTER}?>? 30] ? 3:4)
exten => _X.,3,Dial(SS7/MSC1/00${EXTEN}|60)
exten => _X.,4,Hangup()

exten => h,1,SetGlobalVar(CALLCOUNTER=${MATH(${CALLCOUNTER}-1,int)})

Regrads,

Antoine Megalla.




________________________________
From: aka <akablast@xxxxxxxxx>
To: asterisk-ss7 at lists.digium.com
Sent: Tuesday, May 26, 2009 12:57:30 PM
Subject: send call via define cic range

Hi

i am using chan_ss7 1.1 to connect ss7 & asterisk.in my configuration there has a two links(E1 s) to connect asterisk ss7.is 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)



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20090526/b8dc4b40/attachment.htm 


[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux