This file is indexed.

/usr/share/ofono/scripts/dial-number is in ofono-scripts 1.17.bzr6912+16.04.20160314.3-0ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/python3

import sys
import dbus

if (len(sys.argv) < 2):
	print("Usage: %s [modem] <number> [hide_callerid]" % (sys.argv[0]))
	sys.exit(1)

bus = dbus.SystemBus()

manager = dbus.Interface(bus.get_object('org.ofono', '/'),
						'org.ofono.Manager')

modems = manager.GetModems()
modem = modems[0][0]

hide_callerid = "default"

if (len(sys.argv) == 2):
	number = sys.argv[1]
elif (len(sys.argv) == 3):
	if (sys.argv[2] == "default") or (sys.argv[2] == "enabled") or \
			(sys.argv[2] == "disabled"):
		number = sys.argv[1]
		hide_callerid = sys.argv[2]
	else:
		modem = sys.argv[1]
		number = sys.argv[2]
else:
	modem = sys.argv[1]
	number = sys.argv[2]
	hide_callerid = sys.argv[3]

print("Using modem %s" % modem)

vcm = dbus.Interface(bus.get_object('org.ofono', modem),
						'org.ofono.VoiceCallManager')

path = vcm.Dial(number, hide_callerid)

print(path)