linuxasteriskvoipdialplan

Multiple Source Number in Call File Asterisk


i want to make call between 2 people which means i want to call the First person and if he answers it dials the second person's number. First person has multiple numbers and it should dial each number one by one until one of them answers.

I'm using call file and using 'Channel' for First person(it's expected the it should call the First person at the beginning then call the second person) and it consumes the 'Dial' application for making call with the second person call file:
Channel:SIP/313
Context:ext-local
Application:Dial
Data:SIP/300
Priority:1
Archive:yes
Account:888000

is it possible to make multiple call in 'Channel' then make calls one by one? if so how can i make it happen?

remember, i don't want this feature for destination numbers and i know how to make call with multiple destinations (Data:SIP/300&SIP/400)

thank you in advance, any suggestion would be great :)

Solution

  • You can do whatever you want via dialplan and use Local type channel. Ringgroups, followme, anything.

    For freepbx it will be like this

    Channel:Local/313@from-internal/n
    Context:ext-local
    Application:Dial
    Data:SIP/300
    Priority:1
    Archive:yes
    Account:888000
    

    https://www.voip-info.org/asterisk-local-channels/

    PS I highly not recommend do your own dialling core, there WILL be more issues. Use already known projects like vicidial.org