F = open(File, "w", 0600)
os.umask(OldMask)
- root = Element('domain')
- root.attrib['name'] = "$${sip_profile}"
+ root = Element('include')
for a in accounts:
if not 'voipPassword' in a: continue
params.append(param)
param.attrib['name'] = "a1-hash"
param.attrib['value'] = "%s" % (Pass)
+ variables = Element('variables')
+ user.append(variables)
+ variable = Element('variable')
+ variable.attrib['name'] = "toll_allow"
+ variable.attrib['value'] = "domestic,international,local"
+ variables.append(variable)
F.write("%s" % (prettify(root)))
# Write out the position for each user
for a in accounts:
if not a.is_active_user(): continue
+ if a.is_guest_account(): continue
if not 'privateSub' in a: continue
try:
Line = "%s"%(a['privateSub'])
for a in accounts:
if not 'dnsZoneEntry' in a: continue
if not a.is_active_user() and not isRoleAccount(a): continue
+ if a.is_guest_account(): continue
try:
F.write("; %s\n"%(a.email_address()))