D. Examples

The following examples shall provide a reference for the content of the of most important SIP headers of the packets sent between the PBX and the NFON plattform for manual setup of custom PBX's. The trunk should work properly once the actual traffic matches those examples.

Reference setup

SettingValueNote
PBX Public IP10.10.10.10Public WAN address (reachable from the internet)
SIP UserKXXXabcdThe call rings on the corresponding extension, shows caller information
DDIs+49 123 45678 (0-9) 

Register PBX → NFON

The Initial register send from the PBX to the NFON Platform

REGISTER sip:trunk.cloud-cfg.com SIP/2.0

To: sip:KXXXabcd@trunk.cloud-cfg.com

From: <sip:KXXXabcd@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

INVITE NFON → PBX with CLIP

Incoming call to DDI 0049123456780 from 004123456789

INVITE sip:KXXXabcd@10.10.10.10:5060 SIP/2.0

To: sip:0049123456780@trunk.cloud-cfg.com

From: "004123456789" sip:004123456789@ANYTLD

P-Asserted-Identity : sip:004123456789@ANYTLDTLD:5060

INVITE NFON → PBX with CLIR

Incoming call for DDI 0049123456781 from "anonymous" (unknown caller ID)

INVITE sip:KXXXabcd@10.10.10.10:5060 SIP/2.0

To: sip:0049123456781@nfon.net

From: "Anonymous" sip:anonymous@anonymous.invalid:5060

INVITE PBX → NFON with CLIP

Outgoing call for DDI 0049123456782 to 0041234567899

INVITE sip:0041234567899@trunk.cloud-cfg.com SIP/2.0

To: sip:0041234567899@trunk.cloud-cfg.com

From: sip:0049123456782@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

P-Asserted-Identity: sip:0049123456782@trunk.cloud-cfg.com:5060

Alternatively, the "+" prefix can also be used for phone numbers

INVITE sip:+41234567899@trunk.cloud-cfg.com SIP/2.0

To: sip:+41234567899@trunk.cloud-cfg.com

From: sip:+49123456782@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

P-Asserted-Identity: sip:+49123456782@trunk.cloud-cfg.com:5060

INVITE PBX → NFON with CLIR

Outgoing call for DDI 0049123456781 to 0041234567899 with suppressed caller representation ("anonymous")

INVITE sip:0041234567899@trunk.cloud-cfg.com SIP/2.0

To: sip:0041234567899@trunk.cloud-cfg.com

From: "anonymous"sip:KXXXabcd@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

P-Asserted-Identity: sip:0049123456781@trunk.cloud-cfg.com:5060

Privacy: id

Alternatively, only the Privacy Header set to id is also sufficient

INVITE sip:0041234567899@trunk.cloud-cfg.com SIP/2.0

To: sip:0041234567899@trunk.cloud-cfg.com

From: "0049123456781" sip:0049123456781@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

P-Asserted-Identity: sip:0049123456781@trunk.cloud-cfg.com:5060

Privacy: id

INVITE PBX → NFON with CLIP no Screening

Outgoing call for DDI 0049123456782 to 0041234567899, transmitting the 3rd party phone number 0043987654321 as caller representation

INVITE sip:0041234567899@trunk.cloud-cfg.com SIP/2.0

To: sip:0041234567899@trunk.cloud-cfg.com

From: sip:0043987654321@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

P-Asserted-Identity: sip:0049123456782@trunk.cloud-cfg.com:5060

INVITE PBX → NFON to emergency number

Outgoing call for DDI 0049123456781 to 112

INVITE sip:112@trunk.cloud-cfg.com SIP/2.0

To: sip:112@trunk.cloud-cfg.com

From: sip:0049123456782@trunk.cloud-cfg.com:5060

Contact: sip:KXXXabcd@10.10.10.10:5060

P-Asserted-Identity: sip:0049123456781@trunk.cloud-cfg.com:5060