Код: Выделить всё
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
-- Executing [280@test2:1] Answer("SIP/gsm-gate-00000963", "") in new stack
-- Executing [280@test2:2] Set("SIP/gsm-gate-00000963", "CALLERID(all)=+3806 33348350") in new stack
-- Executing [280@test2:3] Goto("SIP/gsm-gate-00000963", "s,1") in new stack
-- Goto (test2,s,1)
-- Executing [s@test2:1] Wait("SIP/gsm-gate-00000963", "1") in new stack
-- Executing [s@test2:2] MixMonitor("SIP/gsm-gate-00000963", "/voip/2013-05- 20 14:33:57-101-280-inko2--.wav") in new stack
Код: Выделить всё
extensions.conf
[test2]
exten => s,1,Wait(1)
exten => s,n,MixMonitor(/voip/${CDR(start)}-${CDR(src)}-${CDR(dst)}-${CDR(dcontext)}-${CDR(accountcode)}-${CDR(user field)}.wav)
exten => s,n,Background(aviar)
exten => s,n,Goto(t,3)
;******************* if press 1 botton *************************
exten => 1,1,Dial(SIP/208&SIP/214&SIP/270&SIP/218,15,r)
exten => 1,2,Dial(SIP/208&SIP/214&SIP/218&SIP/205&SIP/202,30,r)
exten => 1,3,Dial(Dongle/dongle0/holdother,+3***********,30,r)
exten => 1,4,Playback(zanyato1)
exten => 1,5,VoiceMail(support@mail,s)
exten => 1,n,Hangup()
;******************** if press 2 button ************************
exten => 2,1,Dial(SIP/271&SIP/209&SIP/206&SIP/204&SIP/211,15,r) ;chose 2
exten => 2,2,Dial(SIP/270&SIP/205&SIP/202,30,r)
exten => 2,3,Playback(zanyato1)
exten => 2,4,VoiceMail(sales@mail,s)
exten => 2,n,Hangup()
exten => i,1,Goto(s,2)
exten => t,1,WaitExten(10)
exten => t,2,Background(aviar)
exten => t,3,Dial(SIP/213&SIP/217&SIP/218&SIP/209&SIP/210&SIP/211&SIP/214&SIP/208,30,r)
exten => t,4,Playback(zanyato1)
exten => t,5,VoiceMail(info@mail,s)
exten => t,n,Hangup()
exten => 0,1,Dial(SIP/207&SIP/213&SIP/217&SIP/218&SIP/208&SIP/209&SIP/210&SIP/211&SIP/214&SIP/208,30,r)
exten => 0,2,Playback(zanyato1)
exten => 0,3,VoiceMail(info@mail,s)
exten => 0,4,Dial(SIP/250) ;fax
exten => 0,n,Hangup()
Код: Выделить всё
sip.conf
[gsm-gate]
context=test2
type=peer
host=192.168.143.66
username=gsm-gate
qualify=yes
allow=all