Skip to content

Commit 902f33b

Browse files
committed
Added LCM scripts for hold/unhold.
This close #1668
1 parent 9a1feeb commit 902f33b

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Binary file not shown.

liveCallModification/hold.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
############################################################
4+
# Alice calls Bob. Given Alice call_sid, use this script to
5+
# move both calls to a conference room with music and muted
6+
# that means to hold the call.
7+
############################################################
8+
9+
#Provide Restcomm ip address
10+
restcomm_ip=
11+
#Provide Username sid
12+
userSid=
13+
#Provide Auth Token
14+
authToken=
15+
16+
#Call SID of the call to move. Use the call SID of the initial Call
17+
sid=$1
18+
19+
echo "Moving call $1 to Conference"
20+
21+
curl -X POST http://$userSid:$authToken@$restcomm_ip:8080/restcomm/2012-04-24/Accounts/$userSid/Calls.json/$1 -d "Url=http://$restcomm_ip:8080//restcomm/demos/dial/conference/dial-conference.xml" -d "MoveConnectedCallLeg=true"

liveCallModification/unhold.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
############################################################
4+
# Use this script to unhold a call previously set on hold
5+
############################################################
6+
7+
#Provide Restcomm ip address
8+
restcomm_ip=
9+
#Provide Username sid
10+
userSid=
11+
#Provide Auth Token
12+
authToken=
13+
14+
#Call SID of the call to move. Use the call SID of the initial Call
15+
sid=$1
16+
17+
curl -X POST http://$userSid:$authToken@$restcomm_ip:8080/restcomm/2012-04-24/Accounts/$userSid/Calls.json/$1 -d "Url=http://$restcomm_ip:8080/restcomm/demos/dial/conference/dial-conference-moderator.xml "

0 commit comments

Comments
 (0)