---
name: "Net::SIP::Response"
section: "3pm"
platform: "linux"
package: "libnet-sip-perl"
version: "0.838-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::SIP::Response"
---

# Net::SIP::Response(3pm)

handling of SIP response packets

## NAME

Net::SIP::Response - handling of SIP response packets

## SYNOPSIS

```
  my $resp = Net::SIP::Response->new( '401','Authorization required',... );
```

## DESCRIPTION

Subclass of Net::SIP::Packet for handling response packets.

## CONSTRUCTOR

Inherited from Net::SIP::Packet. See there.

Seldom used directly, usually responses get not generated from scratch, but based on a request with the **create\_response** method from Net::SIP::Request.

## METHODS

- code

  Get numerical code of response.

- msg

  Get text for code from response.

- method

  Get method for original request by parsing the CSeq header.
