Setting to Limit SIP channels

Asterisk dial command

You have the 6 channels, and basically you have 6 calls going on… Now when you hang up the do hang up, they dont get stuck right? So you have 6 different peopel on the line and when 7 hits they block you and essentially your phone system is dead….? Ok, one thing you could … Read more

call transfer or call forwarding in asterisk

call transfer or call forwarding in asterisk [test] exten => 1000,1,Dial(SIP/User1) exten => 1000,n,Hangup() exten => 2000,1,Dial(SIP/User2) exten => 2000,n,Hangup() exten => 3000,1,Dial(SIP/User3) exten => 3000,n,Hangup() ;call forwarding exten => _*21*X.,1,NoCDR exten => _*21*X.,2,Set(DB(CFIM/${CALLERID(NUM)}=${EXTEN:4}) exten => _*21*X.,3,Playback(vm-saved) exten => _*21*X.,4,Hangup()    

saving data into custom cdr field – add new filed in cdr

I created custom field “rec_name” id table “cdr”, database “asteriskcdrdb”. In this field I want to store recording name. I know i should do it by adding this line in one of .conf files, but where? exten => s,1,set(CDR(rec_name)=${CALLFILENAME}) I can do it by sql statement, too, but i don’t know where is the file … Read more

Asterisk : Creating a Simple IVR Menu

[demo-menu] exten => s,1,Answer(500)    same => n(loop),Background(press-1&or&press-2)    same => n,WaitExten() exten => 1,1,Playback(you-entered)    same => n,SayNumber(1)    same => n,Goto(s,loop) exten => 2,1,Playback(you-entered)    same => n,SayNumber(2)    same => n,Goto(s,loop) [from-pstn] exten => 6598,1,Goto(demo-menu,s,1)

Adding Listen, Whisper, and Barge to FreePBX or Asterisk

Adding Listen, Whisper, and Barge to FreePBX or Asterisk Listen: Monitor an agents call. The manager can hear both the spied-on and bridged channels, but they cannot hear the manager. Whisper:  Whisper to the agent. The manager can hear both the spied-on and bridged channels, and the spied-on channel (agent) can also hear the manager, … Read more

Asterisk Auto Recording even Manual Call on Phone using Monitor

exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log) exten => _1NXXNXXXXXX,2,Set(CALLFILENAME=${CALLERID(all)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) exten => _1NXXNXXXXXX,3,Monitor(wav,${CALLFILENAME},m) exten => _1NXXNXXXXXX,4,Dial(${SIPTRUNK}/${EXTEN},,tTor) exten => _1NXXNXXXXXX,5,Congestion exten => _1NXXNXXXXXX,103,Congestion exten => _011.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _011.,2,Set(CALLFILENAME=${CALLERID(all)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) exten => _011.,3,Monitor(wav,${CALLFILENAME},m) exten => _011.,4,Dial(${SIPTRUNK}/${EXTEN},,tTor) exten => _011.,5,Congestion exten => _011.,103,Congestion