rendered paste body import configlets for obj in configlets.config_entries:
if obj.groupName == 'Trunks':
try:
if self.__getitem__("trunk_"+obj.name) and not self.__getitem__("trunk_%s_price" % obj.name):
c.appendExten("s","ResetCDR")
c.appendExten("s","AbsoluteTimeout(${timeout})")
c.appendExten("s","SetAccount(0)")
c.appendExten("s","Dial(%s,%d|${options})" % (obj.dial,self.ringtime), e="Playback(lineas_ocupadas)")
if self.__getitem__("trunk_"+obj.name) and self.__getitem__("trunk_%s_price" % obj.name):
c.appendExten("s","ResetCDR")
c.appendExten("s","AbsoluteTimeout(${timeout})")
c.appendExten("s","SetAccount(%s)" % self.__getitem__("trunk_%s_price" % obj.name))
c.appendExten("s","Dial(%s,%d|${options})" % (obj.dial,self.ringtime), e="Playback(lineas_ocupadas)")