Posts

Showing posts from October, 2009

Still can't do that ?

If you still don't understand please email me, moreover if you like me to do your setup I will charge 1000 US$ per 4E1s. I accept paypal only and I work as prepay. my paypal id is msalaque A@T gmail d.o.t com Thanks Salaque

Hidding caller ID

If you like to hide your caller id or like to assign caller ID from a group of pool follow bellow : I did two solutions for that: Solution one : By using small php script [I used PHPAGI ] Download : http://downloads.sourceforge.net/project/phpagi/phpagi/2.14/phpagi-2.14.tgz?use_mirror=transact cd /var/lib/asterisk/agi-bin step 2: #!/usr/bin/php -q $agi = new AGI(); $start = Start caller id you like to use ; $end = End caller id you like to use ; $cidnum = rand ($start,$end); $agi->set_variable("CALLERID(num)", $cidnum); ?> Create a file and save that as rad-id.php chmod +x rad-id.php step 3: In your extension.conf exten => _X.,1,AGI(rand-cid.php) exten => _X.,n,Dial(DAHDI/g1/${EXTEN}) exten => _X.,n,Hangup Solution two : [Thanks Nahid] extension.conf exten => _X.,1,Set(CALLERID(num)=callerid${RAND(start,end)}) exten => _X.,n,Dial(DAHDI/g1/${EXTEN}) exten => _X.,n,Hangup

E1 grouping

Hello all, If you like to assign different E1 to different client follow bellow: step 1: group your E1s edit : /etc/asterisk/chan_dahdi.conf group=1 cicbeginswith=1 channel=1-15 cicbeginswith=17 channel=17-31 group=2 cicbeginswith=32 channel=32-62 group=3 cicbeginswith=63 channel=63-93 group=4 cicbeginswith=94 channel=94-124 step 2: edit : /etc/asterisk/extensions.conf ; Dial plan for 1st E1 exten => _110XXXXXX.,1,Dial(DAHDI/g1/${EXTEN:2}) exten => _110XXXXXX.,n,Hangup ; End of 1st E1 ; Dial plan for 2nd E1 exten => _220XXXXXX.,1,Dial(DAHDI/g2/${EXTEN:2}) exten => _220XXXXXX.,n,Hangup ; End of 2nd E1 ; Dial plan for 3rd E1 exten => _330XXXXXX.,1,Dial(DAHDI/g3/${EXTEN:2}) exten => _330XXXXXX.,n,Hangup ; End of 3rd E1 ; Dial plan for 4th E1 exten => _440XXXXXX.,1,Dial(DAHDI/g4/${EXTEN:2}) exten => _440XXXXXX.,n,Hangup ; End of 4th E1