-
Notifications
You must be signed in to change notification settings - Fork 1
/
curl_scripts_example.txt
18 lines (11 loc) · 1.57 KB
/
curl_scripts_example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
curl --digest -u Push:Push -d "<PolycomIPPhone><Data priority="all">tel:\\8500;postd=p3095,3095</Data></PolycomIPPhone>" --header "Content-Type: application/x-com-polycom-spipx" http://10.17.220.17/push
#Dial 5552112 from phone at 10.17.220.217
curl --digest -u Push:Push -d "<PolycomIPPhone><Data priority=\"all\">tel:\\5552112</Data></PolycomIPPhone>" --header "Content-Type: application/x-com-polycom-spipx" http://10.17.220.217/push
#Click 'New Call' (softkey 1 on home screen is new call), dial 555112
curl --digest -u Push:Push -d $'<PolycomIPPhone><Data priority=\"Critical\">Key:Softkey1\nKey:Dialpad5\nKey:Dialpad5\nKey:Dialpad5\nKey:Dialpad1\nKey:Dialpad1\nKey:Dialpad1\nKey:Dialpad2\nKey:Softkey1\nKey:Handsfree</Data></PolycomIPPhone>' --header "Content-Type: application/x-com-polycom-spipx" 10.17.220.217/push
curl --digest -u Push:Push -d $'<PolycomIPPhone><Data priority=\"Critical\">tel:\\5552112</Data></PolycomIPPhone>' --header "Content-Type: application/x-com-polycom-spipx" 10.17.220.217/push
#Answer incoming call
curl --digest -u Push:Push -d "<PolycomIPPhone><Data priority=\"Critical\">Key:Softkey1</Data></PolycomIPPhone>" --header "Content-Type: application/x-com-polycom-spipx" http://10.17.220.217/push
#Answer then transfer
#TEST THIS TO SEE IF THE {tel://XXXX} command works
curl --digest -u Push:Push -d $'<PolycomIPPhone><Data priority="Critical">Key:Softkey1\nKey:Softkey3\nKey:Dialpad8\nKey:Dialpad5\nKey:Dialpad0\nKey:Dialpad0\nKey:Softkey1\nKey:Handsfree</Data></PolycomIPPhone>' --header "Content-Type: application/x-com-polycom-spipx" http://10.17.220.218/push