def getdest_input(linetype='TEL'):
    """
    Method collects user inputs for destination dialstring - TEL or SIP 
    INPUTS: linetype as str ('TEL' or 'SIP') 
    OUTPUT: Returns str
    """
    import re
    loop = True
    while loop:
        dest = input(f'Enter destination dialstring [{linetype}]: ')
        if dest != '':
            if linetype == 'TEL':
                res = re.match('\\d+', dest)
                if res:
                    loop = False
                else:
                    print(
                        f"Invalid input '{dest}' >> Expecting TEL(E.164) dialstring."
                        )
            elif linetype == 'SIP':
                res = re.match('([^@|\\s]+@[^@]+\\.[^@|\\s]+)', dest)
                if res:
                    loop = False
                else:
                    print(
                        f"Invalid input '{dest}' >> Expecting SIP URI dialstring."
                        )
        else:
            print(f"Empty input '{dest}' >> Expecting {linetype} dialstring.")
    return dest
