> This page is for APIs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# call.refer

GET /

Receive call.refer events

Reference: https://signalwire.com/docs/apis/relay/client/fabric/call-refer

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: call.refer
  version: subpackage_callRefer.call.refer
  description: Receive call.refer events
channels:
  /:
    description: Receive call.refer events
    publish:
      operationId: subpackage_callRefer.call.refer-publish
      summary: call.refer
      message:
        name: onCallReferCallReferEvent
        title: call.refer
        payload:
          $ref: '#/components/schemas/call.refer_callReferEvent'
servers:
  production:
    url: wss://relay.signalwire.com/
    protocol: wss
    x-default: true
components:
  schemas:
    ChannelsCallReferMessagesCallReferEventJsonrpc:
      type: string
      enum:
        - '2.0'
      description: JSON-RPC version. Always `2.0`.
      title: ChannelsCallReferMessagesCallReferEventJsonrpc
    ChannelsCallReferMessagesCallReferEventMethod:
      type: string
      enum:
        - signalwire.event
      description: Always `signalwire.event`.
      title: ChannelsCallReferMessagesCallReferEventMethod
    ChannelsCallReferMessagesCallReferEventParamsEventType:
      type: string
      enum:
        - call.refer
      description: The event type — identifies which event this is.
      title: ChannelsCallReferMessagesCallReferEventParamsEventType
    FabricCallReferParamsState:
      type: string
      enum:
        - inProgress
        - cancel
        - busy
        - noAnswer
        - error
        - success
      description: Where the transfer stands.
      title: FabricCallReferParamsState
    Fabric.CallReferParams:
      type: object
      properties:
        call_id:
          type: string
          description: >-
            Unique identifier of the call this event is about. Always present on
            Fabric events.
        node_id:
          type: string
          description: The node the call leg lives on.
        room_session_id:
          type: string
          description: >-
            The room session this call leg belongs to. In a 1:1 call this equals
            the `call_id`.
        segment_id:
          type: string
          description: >-
            Identifier of the call segment this event belongs to, for
            correlating events within the same segment.
        tag:
          type: string
          description: >-
            The `tag` the leg was dialed with, when a server-side application
            set one on the dial. Absent otherwise.
        state:
          $ref: '#/components/schemas/FabricCallReferParamsState'
          description: Where the transfer stands.
        sip_refer_to:
          type: string
          description: The SIP URI the call is being transferred to.
        sip_refer_response_code:
          type: string
          description: >-
            The SIP response code to the REFER, as a string. Present once
            received.
        sip_notify_response_code:
          type: string
          description: >-
            The SIP response code reported by the NOTIFY messages that follow
            the REFER, as a string. Present once received.
      required:
        - call_id
        - node_id
        - room_session_id
        - state
        - sip_refer_to
      description: >-
        Payload of the Call Fabric `call.refer` event: the progress of a SIP
        REFER transfer.
      title: Fabric.CallReferParams
    ChannelsCallReferMessagesCallReferEventParams:
      type: object
      properties:
        event_type:
          $ref: >-
            #/components/schemas/ChannelsCallReferMessagesCallReferEventParamsEventType
          description: The event type — identifies which event this is.
        event_channel:
          type: string
          description: >-
            The channel the event was delivered on — for Calling events, the
            `protocol`

            string your connection received from `signalwire.connect`.
        timestamp:
          type: number
          format: double
          description: >-
            When the event was emitted, as a Unix timestamp in seconds. Always
            present.
        project_id:
          type: string
          description: >-
            Your project ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        space_id:
          type: string
          description: >-
            Your space ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        params:
          $ref: '#/components/schemas/Fabric.CallReferParams'
          description: The event-specific payload.
      required:
        - event_type
        - event_channel
        - timestamp
        - params
      description: The event envelope.
      title: ChannelsCallReferMessagesCallReferEventParams
    call.refer_callReferEvent:
      type: object
      properties:
        jsonrpc:
          $ref: '#/components/schemas/ChannelsCallReferMessagesCallReferEventJsonrpc'
          description: JSON-RPC version. Always `2.0`.
        id:
          type: string
          description: >-
            Event id — a unique UUID generated for each event. Events are
            notifications: you do not reply to them.
        method:
          $ref: '#/components/schemas/ChannelsCallReferMessagesCallReferEventMethod'
          description: Always `signalwire.event`.
        params:
          $ref: '#/components/schemas/ChannelsCallReferMessagesCallReferEventParams'
          description: The event envelope.
      required:
        - jsonrpc
        - id
        - method
        - params
      description: >-
        Fires each time a SIP REFER transfer of a Call Fabric call leg changes
        state. SWML or a server-side application starts it on the leg; there is
        no client request that starts it.
      title: call.refer_callReferEvent

```