---
name: "Net::SIP::NATHelper::Client"
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::NATHelper::Client"
---

# Net::SIP::NATHelper::Client(3pm)

handle NAT/RTP forwarding using remote process

## NAME

Net::SIP::NATHelper::Client - handle NAT/RTP forwarding using remote process

## DESCRIPTION

This module implements the interface of Net::SIP::NATHelper::Base but will talk with a remote process based on Net::SIP::NATHelper::Server while executing the methods.

## CONSTRUCTOR

- new ( SOCKET )

  Will create a new object which will talk with the remote process using the socket SOCKET. SOCKET is either a UNIX domain socket (in SOCK\_STREAM mode) or an `"host:port"` specification in which case it will talk TCP through the socket.

## METHODS

It implements the method **allocate\_sockets**, **activate\_session** and **close\_session** with the same arguments as given in Net::SIP::NATHelper::Server by calling **rpc** with the methods "allocate", "activate" resp. "close".

- rpc ( METHOD,@ARG )

  Makes a synchronous remote call to the server through the in the constructor specified socket and returns the result.

  For calling the arguments will be put into a \\@list which will be packet using Storable. A similar way the result comes back.
