[asterisk-users] Dial(${PJSIP_DIAL_CONTACTS(Alice)} & ${PJSIP_DIAL_CONTACTS(Bob)}) how not to fail if one endpoint has no registered AOR?
Administrator TOOTAI
admin at tootai.net
Mon Jun 10 07:40:57 CDT 2019
Le 10/06/2019 à 10:53, Benoit Panizzon a écrit :
>> What about to put eveything in a variable and the remove the last
>> character if it equal &
>
> Yes, I considered this...
>
> What if you dial three endpoints and the middle one (or last one) is
> empty? You would also need to remove the first & and any double &
> within that string. Is it faisable with asterisk logic?
When I'm in your case I add *not empty* EP one by one adding & after
each. At the end, my variable is empty or finish with &. I then have to
remove this last character and start dial.
--
Daniel
More information about the asterisk-users
mailing list