Author Message
RajeshBairagoni
Joined: Dec 16, 2013
Messages: 98
Offline
Hi,

Can we have multiple create call in single transition ?

For ex after accepting incoming call , in connection.connected event can we have more than one create call tags ?

<transition state="init" event="connection.connected">
<createcall connectionid="first_conn"
callerid="1234"
timeout="'300000'"
dest="'tel:xxxxxxxxx'"
hints="hints"/>

<assign name="state" expr="first_call" />
<createcall connectionid="second_conn"
callerid="5678"
timeout="'300000'"
dest="'tel:xxxxxxxx'"
hints="hints"/>
<assign name="state" expr="'second_call'" />
</transition>

Considering above , Is it possible to handle both calls progressing by using states first_call and second_call ?
Or what is the better way to implement this ?

Thanks in advance

RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
You could but you would not be able to tell the difference between the 2 connection connected events. You would have to look at the $event.connection.remote and use the phone numbers to tell which connected event is which.
Go to:   
Mobile view