<div dir="ltr">I have one solution in mind, maybe it is an overkill but:<br><br>You
can create a db entry for each sip account, DB(family/key) lets name
family=destination sip number and key=${Callerid(num)} and assing a
value 0 or 1, so string will be like this DB(301/300)=1 fot that 300
sip account, and for all other sip accounts DB(300/NNN)=0 where NNN are
all others sip accounts numbers. You can use set for this, example<br>
<br>exten =&gt; 75,1,Set(DB(300/301)=1)<br>or<br>exten =&gt; 75,1,Set(DB(300/${Callerid(num)}=1)<br><div dir="ltr">exten =&gt; 76,1,Set(DB(300/${Callerid(num)}=0)<br>And
just go and call from each phone 75 or 76 , i assume that you callerid
is the same as callerid(num) var. The methos is somehow primitive and
will not work if you have 500 extensions, but for 5 sip accounts&nbsp; is a
way to go.<br>
<br>Or create external bash script to speed up.<br><br>After this you will have as much db entryes as sip accounts in you astdb, all we need to is is to verify the value before call<br><br>exten =&gt; 300,1,GotoIf($[${DB(300/${Callerid(num)})}=1]?2:3)<br>

exten =&gt; 300,2,Playback(stop_calling_me)<br>exten =&gt; 300,3,Dial(Sip/300)<br><br>And again i assume that your sip peers have the same Callerid(num)=extensions<br><br>Maybe i got some syntax errors, but you get the idea.<br>

<br>Have fun<br><br>previous message have failed for some reasons.<br></div></div>