Re: [asterisk-users] 10 Caller IDs to be used randomly or progressively

2019-09-17 Thread Antony Stone
On Wednesday 18 September 2019 at 01:15:57, bilal ghayyad wrote:

> Hello;
> I have 10 Caller IDs and I need each call (each time) to use one of these
> Caller IDs to be the caller id. I know that I can use this syntax as
> example:
> exten => _90ZXX,1,Set(CALLERID(num)=01747576)
> 
> But how I can set the callerid each time from be one of the 10 caller ids
> that are allowed for me?For example: first call to use caller id 01747576
> and second call to use caller id 01747577 and third call to use caller id
> 01747578 and so on, how? RegardsBilal

https://www.voip-info.org/asterisk-func-rand/

https://www.voip-info.org/asterisk-cmd-execif/

https://www.voip-info.org/asterisk-cmd-gotoif/

should give you some ideas.


Antony.

-- 
Never automate fully anything that does not have a manual override capability. 
Never design anything that cannot work under degraded conditions in emergency.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] 10 Caller IDs to be used randomly or progressively

2019-09-17 Thread bilal ghayyad
Hello;
I have 10 Caller IDs and I need each call (each time) to use one of these 
Caller IDs to be the caller id.
I know that I can use this syntax as example:
exten => _90ZXX,1,Set(CALLERID(num)=01747576)

But how I can set the callerid each time from be one of the 10 caller ids that 
are allowed for me?For example: first call to use caller id 01747576 and second 
call to use caller id 01747577 and third call to use caller id 01747578 and so 
on, how?
RegardsBilal-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users