Answer the question
In order to leave comments, you need to log in
How to call through a random CALLERID asterisk from an ISP pool?
Good day! Please tell me the management plans to take a pool of 20 numbers from a cellular provider, my task is to set up an outgoing call through different numbers from this pool. How can this be organized. I also ask you to tell me how to call through a specific number from the pool
Answer the question
In order to leave comments, you need to log in
In general, I looked through the page and it works like this
[random-mobile-out]
;Calls to a random callerid cell
exten => _7XXXXXXXXXX,1,Gosub(Randname,cell${RAND(1,5)},1)
exten => _7XXXXXXXXXX ,2,Dial(SIP/${EXTEN}@TRUNK_NAME,,)
include => handup-sip
[Randname]
exten => cell1,1,Set(CALLERID(name)= 777712345670);
same => n,Return
exten => cell2,1,Set(CALLERID(name)= 777712345671);
same => n,Return
exten => cell3,1,Set(CALLERID(name)= 777712345672);
same => n,Return
exten => cell4,1,Set(CALLERID(name)= 777712345673);
same => n,Return
exten => cell5,1,Set(CALLERID(name)= 777712345674);
same => n,return
In the RAND function, the second parameter must be the total number. Well it's like that for everyone
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question