We need a small script, which based on the following information can make some setups.
A file where we insert the data
[login to view URL]
442030341197:yt12nb:Navn
442030341198:hb0km2:Navn1:
It must make the following files
[login to view URL] must contain
register => 442030341198:hb0km2:442030341198@XXX/442030341198
register => 442030341197:yt12nb:442030341197@XXX/442030341197
[login to view URL] must contain
;Name
exten => 442030341197,1,Set(UNAVAIL=)
exten => 442030341197,n,Set(COMPANY=)
exten => 442030341197,n,Set(CALLEEIDNUM=${EXTEN})
exten => 442030341197,n,Goto(initchannel,4441197,1)
;Name1
exten => 442030341198,1,Set(UNAVAIL=)
exten => 442030341198,n,Set(COMPANY=)
exten => 442030341198,n,Set(CALLEEIDNUM=${EXTEN})
exten => 442030341198,n,Goto(initchannel,4441198,1)
Please notice to make 4441197 and 4441198 it must use the first two in the number 442030341198 and the last 5.
[login to view URL] must contain
exten => 4441197,1,GotoIfTime(08:00-22:00,mon-fri,01-31,*?phones,44411971,1)
exten => 4441197,2,GotoIfTime(09:00-18:00,sat-sun,01-31,*?phones,44411971,1)
exten => 4441198,1,GotoIfTime(08:00-22:00,mon-fri,01-31,*?phones,44411981,1)
exten => 4441198,2,GotoIfTime(09:00-18:00,sat-sun,01-31,*?phones,44411981,1)
[login to view URL] must contain
exten => 4441197,3,GotoIfTime(*,*,01-31,*?phones,44411972,1)
exten => 4441198,3,GotoIfTime(*,*,01-31,*?phones,44411982,1)
[login to view URL] must contain, like the others, then the below must be made for each line, but there the example is only shown with "97".
; QUEUE Extension: 44411971
exten => 44411971,1,Set(CalledQueue=44411971)
exten => 44411971,n,Answer()
exten => 44411971,n,Wait(2)
exten => 44411971,n,Playback(ivr/IVR-44411971)
exten => 44411971,n,Goto(default,Queue-44411971,1)
exten => Queue-44411971,1,AGI([login to view URL])
exten => Queue-44411971,n,Queue(44411971,tTwW,,,900,[login to view URL])
exten => Queue-44411971,n,Goto(phones,,1)
; End QUEUE: 44411971
; QUEUE Extension: 44411972
exten => 44411972,1,Set(CalledQueue=44411972)
exten => 44411972,n,Answer()
exten => 44411972,n,Wait(2)
exten => 44411972,n,Playback(ivr/IVR-44411972)
exten => 44411972,n,Goto(default,Queue-44411972,1)
exten => Queue-44411972,1,AGI([login to view URL])
exten => Queue-44411972,n,Queue(44411972,tTwW,,,900,[login to view URL])
exten => Queue-44411972,n,Goto(phones,,1)
; End QUEUE: 44411972
[login to view URL] must contain, like the others, then the below must be made for each line, but there the example is only shown with "97".
[44411971]
musiconhold=Standard
setqueuevar=no
setqueueentryvar=no
strategy=rrmemory
setinterfacevar=yes
timeout=360
retry=5
announce-frequency=45000
announce-holdtime=no
wrapuptime=0
reportholdtime=No
joinempty=no
announce = ivr/IVR-44411971-Announcement
periodic-announce = ivr/IVR-44411971-Periodic
periodic-announce-frequency = 45000
maxlen=0
monitor-format=wav
[44411972]
musiconhold=Standard
setqueuevar=yes
setqueueentryvar=yes
strategy=rrmemory
setinterfacevar=yes
timeout=360
retry=5
announce-frequency=45000
announce-holdtime=Yes
wrapuptime=0
reportholdtime=No
joinempty=no
;announce = ivr/IVR-44411972-Announcement
periodic-announce = ivr/IVR-44411972-Periodic
periodic-announce-frequency = 45000
maxlen=0
monitor-format=wav