

def answer(delay=0):
    """Answer the channel.

    :param delay: The number of milliseconds to wait before moving to the next
                  priority.
    :type delay: int
    """
    res = 'same => n,Answer(%d)' % delay

    return res


def goto(context, exten='s', priority=1):
    res = 'same => n,Goto(%s,%s,%d)' % (context, exten, priority)

    return res


def hangup(cause=''):
    """Hangup the calling channel.

    :param cause: Hangup cause code to use for the channel.
    :type cause: str
    """
    res = 'same => n,Hangup(%s)' % cause

    return res



def answer(delay=0):
    """Answer the channel.

    :param delay: The number of milliseconds to wait before moving to the next
                  priority.
    :type delay: int
    """
    res = 'same => n,Answer(%d)' % delay

    return res


def goto(context, exten='s', priority=1):
    """Goto another point in the dialplan

    :param context: The context or label to jump to
    :type context: string
    :param exten: The extension within that context to goto (default: s)
    :type exten: string
    :param priority: The line within the extension (default: 1)
    :type priority: int
    """
    res = 'same => n,Goto(%s,%s,%d)' % (context, exten, priority)

    return res


def hangup(cause=''):
    """Hangup the calling channel.

    :param cause: Hangup cause code to use for the channel.
    :type cause: str
    """
    res = 'same => n,Hangup(%s)' % cause

    return res

Add documentation for goto command
Add documentation for goto command

Change-Id: I94e280eef509abe65f552b6e78f21eabfe4192e3
Signed-off-by: Sarah Liske <e262b8a15d521183e33ead305fd79e90e1942cdd@polybeacon.com>

  
  
  def answer(delay=0):
      """Answer the channel.
  
      :param delay: The number of milliseconds to wait before moving to the next
                    priority.
      :type delay: int
      """
      res = 'same => n,Answer(%d)' % delay
  
      return res
  
  
  def goto(context, exten='s', priority=1):
+     """Goto another point in the dialplan
+ 
+     :param context: The context or label to jump to
+     :type context: string
+     :param exten: The extension within that context to goto (default: s)
+     :type exten: string
+     :param priority: The line within the extension (default: 1)
+     :type priority: int
+     """
      res = 'same => n,Goto(%s,%s,%d)' % (context, exten, priority)
  
      return res
  
  
  def hangup(cause=''):
      """Hangup the calling channel.
  
      :param cause: Hangup cause code to use for the channel.
      :type cause: str
      """
      res = 'same => n,Hangup(%s)' % cause
  
      return res
  
Add documentation for goto command
## Code Before:


def answer(delay=0):
    """Answer the channel.

    :param delay: The number of milliseconds to wait before moving to the next
                  priority.
    :type delay: int
    """
    res = 'same => n,Answer(%d)' % delay

    return res


def goto(context, exten='s', priority=1):
    res = 'same => n,Goto(%s,%s,%d)' % (context, exten, priority)

    return res


def hangup(cause=''):
    """Hangup the calling channel.

    :param cause: Hangup cause code to use for the channel.
    :type cause: str
    """
    res = 'same => n,Hangup(%s)' % cause

    return res

## Instruction:
Add documentation for goto command
## Code After:


def answer(delay=0):
    """Answer the channel.

    :param delay: The number of milliseconds to wait before moving to the next
                  priority.
    :type delay: int
    """
    res = 'same => n,Answer(%d)' % delay

    return res


def goto(context, exten='s', priority=1):
    """Goto another point in the dialplan

    :param context: The context or label to jump to
    :type context: string
    :param exten: The extension within that context to goto (default: s)
    :type exten: string
    :param priority: The line within the extension (default: 1)
    :type priority: int
    """
    res = 'same => n,Goto(%s,%s,%d)' % (context, exten, priority)

    return res


def hangup(cause=''):
    """Hangup the calling channel.

    :param cause: Hangup cause code to use for the channel.
    :type cause: str
    """
    res = 'same => n,Hangup(%s)' % cause

    return res
