sip trunk 2 ip-pbx user guide asterisk -...

44
SIP Trunk 2 IP-PBX User Guide Asterisk

Upload: dangque

Post on 03-Nov-2018

243 views

Category:

Documents


0 download

TRANSCRIPT

SIP Trunk 2 IP-PBX User Guide(Asterisk)

Index

1. SIP Trunk 2 Overview ……………………………………………………… 3

2. Purchase/Settings in Web Portal ……………………………… 5

3. Configuration Example of your IP-PBX ……………………………… 12

4. Technical Data ……………………………… 24

2

SIP Trunk 2 is a next generation IP phone service that connects to PBX making an external line call which is compatible to Asterisk, Aspire X IP-PBX.

1.SIP Trunk 2 Overview

<SIP Trunk 2 FEATURE HIGHLIGHTS>

■ Compatible to Asterisk, Aspire X PBX.

■ Options for “ Authentication Method” are:• Password Authentication• Authentication with IP Address• Authentication with IP Address• Authentication using both IP Address and Password.

■ CPS (Call Per Second) has been significantly improved from normal SIP trunk.*Our Cloud PBX Recording Option is currently not supported by SIP trunk 2(If you need the recording option, please Contact us)

===== Verified IP-PBX =====・Asterisk

Asterisk PBX/1.4.xAsterisk PBX 1.6.xAsterisk PBX 1.8.xAsterisk PBX 11Asterisk PBX 11Asterisk PBX 12

・Aspire XIP3WW-32VOIPDB-A1version: 05.01

*IP-PBX versions not listed above are not fully supported by SIP trunk 2.========================

※Please permit on your firewall incoming network traffic from our VoIP server IP addresses with 5060, 10000~20000 UDP ports.

3

1.SIP Trunk 2 Overview

[Sample Configuration SIP trunk2 with IP-PBX]

*If SIP trunk2 Unique was purchased BEFORE March 9, 2017,

Unique: 0000123456SIP Trunk2 Server: xxx.xxx.xxx.xxxYour IP-PBX : IP Address 000.000.000.000DIDs: 0312345678 , 0312123434

*If SIP trunk2 Unique was purchased BEFORE March 9, 2017, In case of Japanese toll free numbers such as prefix 0120, 0800 and 0570, you should set its background number showing in Phone Number List of the web portal.

ex.) A number enclosed in parentheses is its background number.number.0120****** [03******]

*Customers who use multiple SIP trunk 2 Unique together ( the one purchased before Mar, 9 2017 and the one purchased Mar, 10 2017 afterwards) can check each SIP trunk2 unique setting on the SIP trunk2 Unique Details page trunk2 unique setting on the SIP trunk2 Unique Details page as below

Checked : Back ground numberUnchecked : Free Call or Navi-Dial number

4

1.SIP Trunk 2 Overview

xxx.xxx.xxx.xxx

SIP Trunk 2

To:<sip:[email protected]> From: <sip:[email protected]>To:<sip:[email protected]>

Recipient number is set “To header” and “Alert-Into” in SIP messages for Incoming call.See section 4 ”Technical Data" for more details.

From: <sip:[email protected]>

Caller ID must be set “From header” for outgoing call. See section 4 ”Technical Data" for more details.

Your IP-PBX0000.0000.0000.0000

Ext. 200 Ext. 201

DID: 0312123434DID: 0312345678

Ext. 200 Ext. 201

Image 1. Configuration Diagram of Incoming/Outgoing Calls

Call TO in case DID : “0312345678”, ext. 200 will ring.Call TO in case DID : “0312123434”, ext 201 will ring.

5

Call TO in case DID : “0312123434”, ext 201 will ring.Outgoing call from ext. 200, “0312345678” is set as caller IDOutgoing call from ext. 201, “0312123434” is set as caller ID.

2.Purchase/Settings in Web Portal

For purchasing SIP Trunk 2, access the UI of our IP-PBX.

Buy additional SIP trunk channel for 2 or more simultaneous external calls.Buy additional SIP trunk channel for 2 or more simultaneous external calls.

<SIP Trunk 2 Purchase Screen>

① Select “Purchase” at the top menu and choose ”Purchase Unique”in Circle Management Page

in Circle Management Page② Select quantity of SIP trunk 2③ Click “Add to Cart” to proceed for your purchase

6

2.Purchase/Settings in Web Portal

Purchase phone number here*At least one phone number will be needed for external phone calls through SIP Trunk<Phone Number Purchase Screen><Phone Number Purchase Screen>

① Select “Purchase” at the top menu and choose”Purchase Phone Number” in Circle Management Page”Purchase Phone Number” in Circle Management Page

② On the Purchase Phone Number page, find your desired phone number by clicking “Search” button. Add to cart and select “Your Cart” to proceed.

7

2.Purchase/Settings in Web Portal

<SIP Trunk 2 List>

①②

① Select “SIP Trunk List” to open all your SIP trunk account

② Select the icon under “Detail” for detailed settings of SIP Trunk (See next page)

③ Your unique is used as client user ID of your user PBX end③ Your unique is used as client user ID of your user PBX end

8

2.Purchase/Settings in Web Portal

<SIP Trunk 2 Detailed Settings ・ Password Authentication><SIP Trunk 2 Detailed Settings ・ Password Authentication>

①①②③④⑤⑤⑥⑦⑧

① Login server name of SIP Trunk 2② SIP Server IP Address

Please configure it as [peer] in sip.conf on your Asterisk.Please configure it as [peer] in sip.conf on your Asterisk.*Please refer p.14 for details.

③ Unique is used as client user ID of your user PBX end.④ Item “Name” is where you can name/rename your SIP Trunk account.⑤ Select authentication method as “Password Authentication” ⑥ Enter your terminal password is used as client user password of your PBX end. ⑦ Set multiple call count. It’s 1 by default. Purchase “Additional 1 channel for⑦ Set multiple call count. It’s 1 by default. Purchase “Additional 1 channel for

SIP Trunk 2” if you need more than 2 concurrent calls.⑧ In case you use Free Call or Navi-Dial number, please designate format of incoming number configured on your SIP server.Checked : Please configure 0ABJ numberUnchecked : Please configure Free Call or Navi-Dial number.(* Changing check box status is not allowed.)

9

(* Changing check box status is not allowed.)

2.Purchase/Settings in Web Portal

<SIP Trunk 2 Detailed Settings ・ Authentication with IP Address>

①②③③④⑤

⑥⑦

⑧⑧⑨

① Login server name of SIP Trunk 2② Our SIP Server IP Address

Please configure it as [peer] in sip.conf on your Asterisk.*Please refer p.14 for details

③ Unique is used as client user ID of your user PBX end.③ Unique is used as client user ID of your user PBX end.④ Item “Name” is where you can name/rename your SIP Trunk account.⑤ Select authentication method as “Authentication with IP Address”⑥ Enter a public IP address / a port number of your IP-PBX *You can add multiple IP addresses/ports from “+Insert” button.⑦ Your IP-PBX will receive incoming call if ticked. *If unticked it will work only for outgoing calls.outgoing calls.⑧ Set multiple call count. It’s 1 by default. Purchase “Additional 1 channel for

SIP Trunk 2” if you need more than 2 concurrent calls.⑨ In case you use Free Call or Navi-Dial number, please designate format of incoming number configured on your SIP server.Checked : Please configure 0ABJ number

10

Checked : Please configure 0ABJ numberUnchecked : Please configure Free Call or Navi-Dial number.(* Changing check box status is not allowed.)

2.Purchase/Settings in Web Portal

<SIP Trunk 2 Detailed Settings ・Authentication using both IP Address and Password>

①②②

③④⑤⑥⑦⑦⑧⑨

① Login server name of SIP Trunk 2② Our SIP Server IP Address

Please configure it as [peer] in sip.conf on your Asterisk.*Please refer p.14 for details*Please refer p.14 for details

③ Unique is used as client user ID of your user PBX end.④ Item “Name” is where you can name/rename your SIP Trunk account.⑤ Select authentication method as “Authentication using Both IP Address and Password”⑥ Enter a public IP address / a port number of your IP-PBX *You can add multiple IP addresses/ports from “+Insert” button.⑦ Your IP-PBX will receive incoming call if ticked. *If unticked it will work only for outgoing calls.⑧ Set multiple call count. It’s 1 by default. Purchase “Additional 1 channel for⑧ Set multiple call count. It’s 1 by default. Purchase “Additional 1 channel for

SIP Trunk 2” if you need more than 2 concurrent calls.⑨ In case you use Free Call or Navi-Dial number, please designate format of incoming number configured on your SIP server.Checked : Please configure 0ABJ numberUnchecked : Please configure Free Call or Navi-Dial number.(* Changing check box status is not allowed.)

11

2.Purchase/Settings in Web Portal

Select phone number(s) you desire to assign to SIP Trunk 2

<Phone Number List><Phone Number List>

②②

① Click “Phone Number List” to open your Phone Number List.② Select SIP Trunk 2 unique for phone number(s) you desire to assign for it

12

3.Configuration Example of your IP-PBX

3.1. Configuration Example in Asterisk

[Account Example]Unique: 0000123456Password: passwordPassword: passwordDIDs: 0312345678 , 0312123434Extensions: 200, 201Login Server: xxx.xxx.xxx.xxx※login the web portal to confirm your login server.

[Settings Example][Settings Example]Incoming call for 0312345678 is to be arrived at Ext. 200.Incoming call for 0312123434 is to be arrived at Ext. 201.

Outgoing call from a phone with Ext. 200 is to be called with CallerID: 0312345678Outgoing call from a phone with Ext. 201 is to be called with CallerID: 0312123434

; ------------------; sip.conf (for either password or IP address with password authentication); sip.conf (for either password or IP address with password authentication); ------------------

[general] allowguest=no maxexpirey=3600 defaultexpirey=3600port=5060 port=5060 bindaddr=0.0.0.0 srvlookup=yes disallow=all allow=ulawlanguage=jp

register => 0000123456:password@siptrregister => 0000123456:password@siptr

[siptr]type=friendusername=0000123456 secret=password context=inbound canreinvite=no host=xxx.xxx.xxx.xxxhost=xxx.xxx.xxx.xxxinsecure=port,invitedisallow=allallow=ulawqualify=yesnat=yes;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver. 11

13

;<see also next page for the rest settings of sip.conf>

3.Configuration Example of your IP-PBX

; ------------------; sip.conf (for either password or IP address with password authentication); ------------------

[200][200]type=friend username=200secret=200pass host=dynamic context=outbound-1

[201][201]type=friend username=201secret=201pass host=dynamic context=outbound-2

;<see also next page for sip.conf for IP address authentication>

14

3.Configuration Example of your IP-PBX

; ------------------; sip.conf (for IP address authentication); ------------------

[general][general]allowguest=nomaxexpirey=3600defaultexpirey=3600port=5060bindaddr=0.0.0.0srvlookup=yesdisallow=allallow=ulawallow=ulawlanguage=jp

[siptr]type=friendcontext=inboundcanreinvite=nohost=xxx.xxx.xxx.xxxinsecure=port,inviteinsecure=port,invitedisallow=allallow=ulawqualify=yesnat=yes

;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver. 11

[peer1]type=friendtype=friendcontext=inboundHost=xxx.xxx.xxx.xxxnat=yes

[peer2]type=friendcontext=inboundHost=xxx.xxx.xxx.xxxHost=xxx.xxx.xxx.xxxnat=yes

;please refer to P.10 ② for checking host IP address to be configured as peer.

[200]type=friend username=200secret=200pass secret=200pass host=dynamic context=outbound-1

[201]type=friend username=201secret=201pass host=dynamic

15

host=dynamic context=outbound-2

3.Configuration Example of your IP-PBX

; ------------------; extensions.conf; ------------------[general] writeprotect=no writeprotect=no priorityjumping=yes

[inbound]exten => 0312345678,1, Dial(SIP/200,120,t)exten => 0312345678,2,Congestion exten => 0312345678,102,Busy

exten => 0312123434,1, Dial(SIP/201,120,t)exten => 0312123434,2,Congestion exten => 0312123434,102,Busy

[outbound-1]exten => _0., 1,Set(CALLERID(num)= 0312345678exten => _0., 2,Dial(SIP/${EXTEN}@siptr,120,T)exten => _0., 3,Congestionexten => _0., 3,Congestionexten => _0.,104,Busy

exten => _1., 1,Set(CALLERID(num)= 0312345678exten => _1., 2,Dial(SIP/${EXTEN}@siptr,120,T)exten => _1., 3,Congestionexten => _1.,104,Busy;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on.;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on.

exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)exten => _ XXX, 2,Congestionexten => _ XXX, 102,Busy; XXX represents 3 digit-extensions. Please adjust digit number as yours.

;<see also next page for the rest settings of extensions.conf>

16

3.Configuration Example of your IP-PBX

[outbound-2]exten => _0., 1,Set(CALLERID(num)= 0312123434)exten => _0., 2,Dial(SIP/${EXTEN}@siptr,120,T)exten => _0., 3,Congestionexten => _0., 3,Congestionexten => _0.,104,Busy

exten => _1., 1,Set(CALLERID(num)= 0312123434)exten => _1., 2,Dial(SIP/${EXTEN}@siptr,120,T)exten => _1., 3,Congestionexten => _1.,104,Busy;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on.;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on.

exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)exten => _ XXX, 2,Congestionexten => _ XXX, 102,Busy; XXX represents 3 digit-extensions. Please adjust digit number as yours.

17

3.Configuration Example of your IP-PBX

3.2. Configuration Example to limit multiple call count for each extension group in Asterisk.

[Settings Example]Set max multiple call count (for external calls) as 2 for Group 1

Group 1:Max multiple count 2Extensions 201 ~ 202Phone Numbers 03-1234-5678

Group 2:Max multiple count 3Extensions 301 ~ 302

Set max multiple call count (for external calls) as 2 for Group 1Set max multiple call count (for external calls) as 3 for Group 2

Group 2: Extensions 301 ~ 302Phone Numbers 03-1212-3434

; ------------------; sip.conf (for either password or IP address with password authentication); ------------------

[general]allowguest=no maxexpirey=3600 defaultexpirey=3600 context=extdport=5060 bindaddr=0.0.0.0 bindaddr=0.0.0.0 srvlookup=yes disallow=all allow=ulawlanguage=jp

register=>0000123456:[email protected]/0000123456

[0000123456][0000123456]type=friendusername=0000123456secret=password host=xxx.xxx.xxx.xxxinsecure=port,invitecontext=inboundqualify=yesqualify=yesnat=yes;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver. 11

;<see also next page for the rest settings of sip.conf>

18

3.Configuration Example of your IP-PBX

; ------------------; sip.conf (for either password or IP address with password authentication); ------------------

; Group 1; Group 1[201]type=friend context=group1_outbound username=201secret=password host=dynamic

[202]type=friend context=group1_outbound username=202secret=password host=dynamic

; Group 2[301]type=friend context=group2_outbound username=301secret=password secret=password host=dynamic

[302]type=friend context=group2_outbound username=302secret=password secret=password host=dynamic

;<see also next page for sip.conf for IP address authentication>

19

3.Configuration Example of your IP-PBX;--------------;sip.conf (IP address authentication) ;--------------

[general]allowguest=no allowguest=no maxexpirey=3600 defaultexpirey=3600 context=extdport=5060 bindaddr=0.0.0.0 srvlookup=yes disallow=all allow=ulawallow=ulawlanguage=jp

[siptr]type=friendcontext=inboundcanreinvite=nohost= xxx.xxx.xxx.xxxinsecure=port,inviteinsecure=port,invitedisallow=allallow=ulawqualify=yesnat=yes

;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver. 11

[peer1][peer1]type=friendcontext=inboundHost=xxx.xxx.xxx.xxxnat=yes

[peer2]type=friendcontext=inboundHost=xxx.xxx.xxx.xxxHost=xxx.xxx.xxx.xxxnat=yes

;please refer to P.10 ② for checking host IP address to be configured as peer.

;<see also next page for the rest settings of sip.conf>

20

3.Configuration Example of your IP-PBX

;--------------;sip.conf (IP address authentication) ;--------------

; Group 1; Group 1[201]type=friend context=group1_outbound username=201secret=password host=dynamic

[202][202]type=friend context=group1_outbound username=202secret=password host=dynamic

; Group 2[301]type=friend context=group2_outbound username=301secret=password host=dynamic

[302][302]type=friend context=group2_outbound username=302secret=password host=dynamic

21

3.Configuration Example of your IP-PBX

<extensions.conf Example in your Asterisk>

; ------------------; extensions.conf; ------------------; extensions.conf; ------------------

[general] writeprotect=no priorityjumping=yes

; Group 1; Group 1[inbound]exten => 0312345678,1,NoOp(EXTEN: ${EXTEN})exten => 0312345678,2,Set(GROUP(CALLS)=GROUP1)exten => 0312345678,3,Set(CURRENTCALLS=${GROUP_COUNT(GROUP1@CALLS)}) exten => 0312345678,4,Set(MAXCALLS=2)exten => 0312345678,5,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => 0312345678,6,Dial(SIP/201&SIP/202,120)exten => 0312345678,6,Dial(SIP/201&SIP/202,120)exten => 0312345678,7,Congestionexten => 0312345678,106,Busy

; Group 2exten => 0312123434,1,NoOp(EXTEN: ${EXTEN})exten => 0312123434,2,Set(GROUP(CALLS)=GROUP2)exten => 0312123434,3,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)}) exten => 0312123434,4,Set(MAXCALLS=3)exten => 0312123434,4,Set(MAXCALLS=3)exten => 0312123434,5,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => 0312123434,6,Dial(SIP/301&SIP/302,120)exten => 0312123434,7,Congestion exten => 0312123434,106,Busy

;<see also next page for the rest settings of extensions.conf>

22

;<see also next page for the rest settings of extensions.conf>

3.Configuration Example of your IP-PBX

<extensions.conf Example in your Asterisk>

; Group 1[group1_outbound]exten => _0., 1,Set(CALLERID(num)=0312345678)exten => _0., 1,Set(CALLERID(num)=0312345678)exten => _0., 2,Set(CALLERID(name)=GROUP1) exten => _0., 3,Set(GROUP(CALLS)=GROUP1)exten => _0., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP1@CALLS)}) exten => _0., 5,Set(MAXCALLS=2)exten => _0., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => _0., 7,Dial(SIP/${EXTEN}@0000123456,120)exten => _0., 8,Congestion exten => _0.,106,Busyexten => _0., 8,Congestion exten => _0.,106,Busy

exten => _1., 1,Set(CALLERID(num)=0312345678)exten => _1., 2,Set(CALLERID(name)=GROUP1) exten => _1., 3,Set(GROUP(CALLS)=GROUP1)exten => _1., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP1@CALLS)}) exten => _1., 5,Set(MAXCALLS=2)exten => _1., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => _1., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => _1., 7,Dial(SIP/${EXTEN}@0000123456,120)exten => _1., 8,Congestion exten => _0.,106,Busy

exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)exten => _ XXX, 2,Congestionexten => _ XXX, 102,Busy

; Group 2; Group 2[group2_outbound]exten => _0., 1,Set(CALLERID(num)= 0312123434)exten => _0., 2,Set(CALLERID(name)=GROUP2) exten => _0., 3,Set(GROUP(CALLS)=GROUP2)exten => _0., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)}) exten => _0., 5,Set(MAXCALLS=3)exten => _0., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => _0., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => _0., 7,Dial(SIP/${EXTEN}@0000123456,120)exten => _0., 8,Congestionexten => _0.,106,Busy

exten => _1., 1,Set(CALLERID(num)= 0312123434)exten => _1., 2,Set(CALLERID(name)=GROUP2) exten => _1., 3,Set(GROUP(CALLS)=GROUP2)exten => _1., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)}) exten => _1., 4,Set(CURRENTCALLS=${GROUP_COUNT(GROUP2@CALLS)}) exten => _1., 5,Set(MAXCALLS=3)exten => _1., 6,ExecIf($[${CURRENTCALLS} > ${MAXCALLS}]?Hangup) exten => _1., 7,Dial(SIP/${EXTEN}@0000123456,120)exten => _1., 8,Congestionexten => _1.,106,Busy

exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)

23

exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)exten => _ XXX, 2,Congestionexten => _ XXX, 102,Busy

4.Technical Data

4.1. SIP REGISTER message:

■ Sending REGISTER message Is required to register your ID, IP address and port number for authentication.

REGISTERFrom: <sip: [email protected]>;tag=as04bc6a95

your IP-PBX

000.000.000.000SIP Trunk 2

xxx.xxx.xxx.xxx

Your ID (SIP Trunk 2 unique number

IP address of SIP Trunk 2

From: <sip: [email protected]>;tag=as04bc6a95To: <sip: [email protected]>Call-ID: [email protected]

1100 TryingFrom: <sip: [email protected]>;tag=as04bc6a95To: <sip: [email protected]>Call-ID: [email protected]

2401 UnauthorizedFrom: <sip: [email protected]>;tag=as04bc6a95To: <sip: [email protected]>;tag=as245298a3Call-ID: [email protected]

3REGISTER(with credential information)From: <sip: [email protected]>;tag=as2031f6e2To: <sip: [email protected]>Call-ID: [email protected]: [email protected]

4SIP/2.0 100 TryingFrom: <sip: [email protected]>;tag=as2031f6e2To: <sip: [email protected]>Call-ID: [email protected]

5200 OKFrom: <sip: [email protected]>;tag=as2031f6e2

figure 4.1 SIP flow for REGISTER

From: <sip: [email protected]>;tag=as2031f6e2To: <sip: [email protected]>;tag=as245298a3Call-ID: [email protected]

6

※Sending REGISTER message is NOT required in case your authentication method is “Authentication with IP Address”

24

4.Technical Data

4.1.1 PBX → GUEST

REGISTER sip:xxx.xxx.xxx.xxx SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4e9b3e05;rport From: <sip: [email protected]>;tag=as04bc6a95From: <sip: [email protected]>;tag=as04bc6a95To: <sip: [email protected]>Call-ID: [email protected]: 1749 REGISTERUser-Agent: Asterisk PBXMax-Forwards: 70Expires: 120Contact: <sip: [email protected]> Contact: <sip: [email protected]> Event: registrationContent-Length: 0

4.1.2 GUEST → PBX

SIP/2.0 100 TryingSIP/2.0 100 TryingVia:SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4e9b3e05;received=000.000.000.000;rport=5060 From: <sip: [email protected]>;tag=as04bc6a95To: <sip: [email protected]>Call-ID: [email protected] CSeq: 1749 REGISTERUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesContact: <sip: [email protected]>Content-Length: 0

4.1.3 GUEST → PBX4.1.3 GUEST → PBX

SIP/2.0 401 UnauthorizedVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4e9b3e05;received=000.000.000.000;rport=5060 From: <sip: [email protected]>;tag=as04bc6a95To: <sip: [email protected]>;tag=as245298a3 Call-ID: [email protected]: 1749 REGISTERUser-Agent: Asterisk PBXUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesWWW-Authenticate: Digest algorithm=MD5, realm="xxx.xxx.xxx.xxx", nonce="3deff552" Content-Length: 0

25

4.Technical Data

4.1.4 PBX → GUEST

REGISTER sip: xxx.xxx.xxx.xxx SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1db71efa;rport From: <sip: [email protected] >;tag=as2031f6e2From: <sip: [email protected] >;tag=as2031f6e2To: <sip: [email protected] >Call-ID: [email protected] CSeq: 1750 REGISTERUser-Agent: Asterisk PBX Max-Forwards: 70Authorization: Digest username="0000123456", realm=" xxx.xxx.xxx.xxx ", algorithm=MD5, uri="sip: xxx.xxx.xxx.xxx", nonce="3deff552", response="bace343abbe8362868dba84e58d7e056", opaque=""Expires: 120Contact: <sip: [email protected]> Event: registrationContact: <sip: [email protected]> Event: registrationContent-Length: 0

4.1.5 GUEST → PBX

SIP/2.0 100 TryingVia:SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1db71efa;received=000.000.000.000;rport=5060 Via:SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1db71efa;received=000.000.000.000;rport=5060 From: <sip: [email protected] >;tag=as2031f6e2To: <sip: [email protected] >Call-ID: [email protected] CSeq: 1750 REGISTERUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesContact: <sip: [email protected] >Contact: <sip: [email protected] >Content-Length: 0

4.1.6 GUEST → PBX

SIP/2.0 200 OKSIP/2.0 200 OKVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1db71efa;received=000.000.000.000;rport=5060 From: <sip: [email protected] >;tag=as2031f6e2To: <sip: [email protected] >;tag=as245298a3 Call-ID: [email protected]: 1750 REGISTERUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesSupported: replacesExpires: 120Contact: <sip: [email protected]>;expires=120 Date: Mon, 05 Jul 2010 04:20:13 GMTContent-Length: 0

26

4.Technical Data

4.2. SIP INVITE message of outgoing call from your IP-PBX through SIP Trunk 2

SIP From header should be : From: “Phone Display name”<sip:CallerID@SIP Trunk 2 IP address or FQDN>

INVITEFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>Call-ID: [email protected]

SIP Trunk 2xxx.xxx.xxx.xxx

your IP-PBX000.000.000.000

Phone Display Name CallerID

IP address of SIP Trunk 2 server

Call-ID: [email protected]

407 Proxy Authentication RequiredFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as4abe0e65Call-ID: [email protected]

ACKFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as4abe0e65Call-ID: [email protected]

1

2

Receiver Phone

Number

INVITE(with credential information)From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>Call-ID: [email protected]

100 TryingFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>Call-ID: [email protected]

3

4

180 RingingFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]

183 Session ProgressFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]

5

6

200 OKFrom: "aiueo PBX" <[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]

ACKFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]

starting a call

7

8

Call-ID: [email protected]

BYEFrom: <sip:[email protected]>;tag=as54380085To: "aiueo PBX" <[email protected]>;tag=as5dd4eaee Call-ID: [email protected]

200 OKFrom: <sip:[email protected]>;tag=as54380085

Terminating a call

9

10From: <sip:[email protected]>;tag=as54380085To: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee Call-ID: [email protected]

11

4.Technical Data

4.2.1 PBX → GUEST

INVITE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK17bf4505;rportFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>Contact: <sip:[email protected]>Call-ID: [email protected]: 102 INVITEUser-Agent: Asterisk PBX Max-Forwards: 70Date: Fri, 02 Jul 2010 03:05:26 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContent-Type: application/sdp Content-Length: 267

v=0o=root 22702 22702 IN IP4 000.000.000.000s=sessionc=IN IP4 000.000.000.000t=0 0m=audio 18572 RTP/AVP 0 8 3 101m=audio 18572 RTP/AVP 0 8 3 101a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:3 GSM/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -

4.2.2 GUEST → PBX

SIP/2.0 407 Proxy Authentication RequiredVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK17bf4505;received=000.000.000.000;rport=5060 From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeTo: <sip:[email protected]>;tag=as4abe0e65Call-ID: [email protected] CSeq: 102 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesProxy-Authenticate: Digest algorithm=MD5, realm="xxx.xxx.xxx.xxx ", nonce="23a44cfd" Content-Length: 0Content-Length: 0

28

4.Technical Data

4.2.3 PBX → GUEST

ACK sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK17bf4505;rportFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as4abe0e65Contact: <sip:[email protected]>Call-ID: [email protected]: 102 ACKUser-Agent: Asterisk PBXMax-Forwards: 70Content-Length: 0Content-Length: 0

4.2.4 PBX → GUEST

INVITE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;rportFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>To: <sip:[email protected]>Contact: <sip:[email protected]>Call-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBX Max-Forwards: 70Proxy-Authorization: Digest username=" 0000123456 ", realm="xxx.xxx.xxx.xxx ",algorithm=MD5, uri="sip:[email protected]", nonce="23a44cfd", response="cc6c5a668cbd435dee31c767981ff710", opaque=""response="cc6c5a668cbd435dee31c767981ff710", opaque=""Date: Fri, 02 Jul 2010 03:05:26 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContent-Type: application/sdp Content-Length: 267

v=0o=root 22702 22703 IN IP4 000.000.000.000s=sessions=sessionc=IN IP4 000.000.000.000t=0 0m=audio 18572 RTP/AVP 0 8 3 101a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:3 GSM/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=fmtp:101 0-16a=silenceSupp:off - - - -

29

4.Technical Data

4.2.5 GUEST → PBX

SIP/2.0 100 TryingVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;received=000.000.000.000;rport=5060 From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeTo: <sip:[email protected]>Call-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesContact: <sip:[email protected]>Contact: <sip:[email protected]>Content-Length: 0

4.2.6. GUEST → PBX

SIP/2.0 180 RingingVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;received=000.000.000.000;rport=5060 From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeFrom: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeTo: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesContact: <sip:[email protected]>Contact: <sip:[email protected]>Content-Length: 0

30

4.Technical Data

4.2.7 GUEST → PBX

SIP/2.0 183 Session ProgressVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;received=000.000.000.000;rport=5060 Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;received=000.000.000.000;rport=5060 From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeTo: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesSupported: replacesContact: <sip:[email protected]>Content-Type: application/sdpContent-Length: 242

v=0o=root 4414 4414 IN IP4 xxx.xxx.xxx.xxxs=sessionc=IN IP4 xxx.xxx.xxx.xxxc=IN IP4 xxx.xxx.xxx.xxxt=0 0m=audio 18922 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20a=ptime:20a=sendrecv

31

4.Technical Data

4.2.8 GUEST → PBX

SIP/2.0 200 OKVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;received=000.000.000.000;rport=5060 Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK4fc267d7;received=000.000.000.000;rport=5060 From: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaeeTo: <sip:[email protected]>;tag=as54380085Call-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesSupported: replacesContact: <sip:[email protected]>Content-Type: application/sdpContent-Length: 242

v=0o=root 4414 4415 IN IP4 xxx.xxx.xxx.xxxs=sessionc=IN IP4 xxx.xxx.xxx.xxxc=IN IP4 xxx.xxx.xxx.xxxt=0 0m=audio 18922 RTP/AVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20a=ptime:20a=sendrecv

4.2.9 PBX → GUEST

ACK sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK6c101c7f;rportVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK6c101c7f;rportFrom: " aiueo PBX " <sip:[email protected]>;tag=as5dd4eaee To: <sip:[email protected]>;tag=as54380085Contact: <sip:[email protected]>Call-ID: [email protected]: 103 ACKUser-Agent: Asterisk PBXMax-Forwards: 70Content-Length: 0Content-Length: 0

32

4.Technical Data

4.2.10 GUEST → PBX

BYE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK166bf514;rport Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK166bf514;rport From: <sip:[email protected]>;tag=as54380085To: "aiueo PBX" <sip:[email protected]>;tag=as5dd4eaee Call-ID: [email protected]: 102 BYEUser-Agent: Asterisk PBX Max-Forwards: 70Content-Length: 0

4.2.11. PBX → GUEST

SIP/2.0 200 OK Via:SIP/2.0/UDPxxx.xxx.xxx.xxx:5060;branch=z9hG4bK166bf514;received=xxx.xxx.xxx.xxx;rport=5060 From: <sip:[email protected]>;tag=as54380085To: " aiueo PBX " <sip:[email protected]>;tag=as5dd4eaee Call-ID: [email protected]: [email protected]: 102 BYEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContact: <sip:[email protected]> Content-Length: 0X-Asterisk-HangupCause: Normal Clearing

33

4.Technical Data

4.3. SIP Busy message while outgoing call in case receiver is on another call

Busy message sent by SIP Trunk 2 when receiver is currently on another call,

SIP Trunk 2 xxx.xxx.xxx.xxx

your IP-PBX000.000.000.000 CallerID

IP address of SIP Trunk 2 server

INVITEFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>

1

2

To: <sip:[email protected]>Call-ID: [email protected]

407 Proxy Authentication RequiredFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>;tag=as291aca90Call-ID: [email protected]

3

ACKFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>;tag=as291aca90Call-ID: [email protected]

INVITE(with authentication information)From: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56

4

5

From: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>Call-ID: [email protected]

100 TryingFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>Call-ID: [email protected]

5

6

SIP/2.0 486 Busy HereFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>;tag=as715c3c5eCall-ID: [email protected]

ACKFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56

figure 4.3 SIP flow including Busy message while outgoing call

7

To: <sip:[email protected]>;tag=as715c3c5eCall-ID: [email protected]

34

figure 4.3 SIP flow including Busy message while outgoing call

4.Technical Data

4.3.1 PBX → GUEST

INVITE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK63c44c39;rportFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56 From: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56 To: <sip:[email protected]>Contact: <sip:[email protected]>Call-ID: [email protected]: 102 INVITEUser-Agent: Asterisk PBX Max-Forwards: 70Date: Tue, 06 Jul 2010 10:09:37 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContent-Type: application/sdp Content-Length: 267

v=0o=root 22702 22702 IN IP4 000.000.000.000s=sessionc=IN IP4 000.000.000.000t=0 0m=audio 14646 RTP/AVP 0 8 3 101m=audio 14646 RTP/AVP 0 8 3 101a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16a=silenceSupp:off - - - -

4.3.2 GUEST→ PBX

SIP/2.0 407 Proxy Authentication RequiredVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK63c44c39;received=000.000.000.000;rport=5060 From: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>;tag=as291aca90To: <sip:[email protected]>;tag=as291aca90Call-ID: [email protected]: 102 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesProxy-Authenticate: Digest algorithm=MD5, realm="xxx.xxx.xxx.xxx ", nonce="15a6e863" Content-Length: 0

35

4.Technical Data

4.3.3 PBX → GUEST

ACK sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK63c44c39;rportFrom: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56 From: "aiueo PBX" <sip:[email protected]>;tag=as48ac6d56 To: <sip:[email protected] >;tag=as291aca90Contact: <sip:[email protected]>Call-ID: [email protected] CSeq: 102 ACKUser-Agent: Asterisk PBXMax-Forwards: 70Content-Length: 0Content-Length: 0

4.3.4 PBX→GUEST

INVITE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1c6e5fcc;rportFrom: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56 To: <sip:[email protected]>To: <sip:[email protected]>Contact: <sip:[email protected]>Call-ID: [email protected] CSeq: 103 INVITEUser-Agent: Asterisk PBX Max-Forwards: 70Proxy-Authorization: Digest username="0000123456", realm="xxx.xxx.xxx.xxx ",algorithm=MD5, uri="sip:[email protected] ", nonce="15a6e863", response="54ebd3bdb5bab4b621f55fbd3ffe5e0b", opaque=""response="54ebd3bdb5bab4b621f55fbd3ffe5e0b", opaque=""Date: Tue, 06 Jul 2010 10:09:37 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContent-Type: application/sdpContent-Length: 267

v=0o=root 22702 22703 IN IP4 000.000.000.000o=root 22702 22703 IN IP4 000.000.000.000s=sessionc=IN IP4 000.000.000.000t=0 0m=audio 14646 RTP/AVP 0 8 3 101a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:3 GSM/8000a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -

36

4.Technical Data

4.3.5 GUEST→ PBX

SIP/2.0 100 TryingVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1c6e5fcc;received=000.000.000.000;rport=5060 From: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56From: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>Call-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesContact: <sip:[email protected]>Contact: <sip:[email protected]>Content-Length: 0

4.3.6. GUEST → PBX

SIP/2.0 486 Busy HereVia: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1c6e5fcc;received=000.000.000.000;rport=5060 From: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56From: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56To: <sip:[email protected]>;tag=as715c3c5eCall-ID: [email protected]: 103 INVITEUser-Agent: Asterisk PBXContact: <sip:[email protected]>Content-Length: 0

4.3.7 PBX → GUESTACK sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK1c6e5fcc;rportFrom: " aiueo PBX " <sip:[email protected]>;tag=as48ac6d56 To: <sip:[email protected]>;tag=as715c3c5eTo: <sip:[email protected]>;tag=as715c3c5eContact: <sip:[email protected]>Call-ID: [email protected]: 103 ACKUser-Agent: Asterisk PBX Max-Forwards: 70Content-Length: 0

37

4.Technical Data

4.4. SIP INVITE message of incoming call from SIP Trunk 2 to your IP-PBX

SIP To header will be : To: <sip:Recipient Phone Number@Your IP PBX IP address>

*SIP Trunk 2 sets the same recipient phone number to Alert-info header as well.*SIP Trunk 2 sets the same recipient phone number to Alert-info header as well.

SIP Trunk 2xxx.xxx.xxx.xxx

your IP-PBX000.000.000.000

IP address of your IP-PBX

CallerID

INVITEFrom: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aTo: <sip:[email protected]>

Recipient

your IP-PBX

1

2

To: <sip:[email protected]>Call-ID: [email protected]

100 TryingFrom: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aTo: <sip:[email protected]>Call-ID: [email protected]

IP address of SIP Trunk 2 server

3

200 OKFrom: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aTo: <sip:[email protected]>;tag=as577af7ceCall-ID: [email protected]

ACKFrom: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aTo: <sip:[email protected]>;tag=as577af7ce

Starting a call

4

5

To: <sip:[email protected]>;tag=as577af7ceCall-ID: [email protected]

BYEFrom: <sip:[email protected]>;tag=as577af7ceTo: “ 080AAAAXXXX " <sip:[email protected]>;tag=as1dddca7aCall-ID: [email protected]

Terminating a call

5

6

200 OKFrom: <sip:[email protected]>;tag=as577af7ceTo: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aCall-ID: [email protected]

figure 4.4 SIP INVITE flow (incoming)

38

figure 4.4 SIP INVITE flow (incoming)

4.Technical Data

4.4.1 GUEST→PBX

INVITE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK546a1def;rport From: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7a From: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7a To: <sip: 0312345678 @000.000.000.000>Contact: <sip:[email protected]>Call-ID: [email protected] CSeq: 102 INVITEUser-Agent: Asterisk PBX Max-Forwards: 70Date: Fri, 02 Jul 2010 05:41:33 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesX-Asterisk-Guest-Tag: 00008X-Asterisk-Guest-Uniqueid: 1278049293.36Alert-info: 0312345678 Content-Type: application/sdpContent-Length: 242

v=0v=0o=root 4414 4414 IN IP4 xxx.xxx.xxx.xxxs=sessionc=IN IP4 xxx.xxx.xxx.xxxt=0 0m=audio 15224 RTP/AVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20a=sendrecv

4.4.2. GUEST←PBX4.4.2. GUEST←PBX

SIP/2.0 100 Trying Via:SIP/2.0/UDPxxx.xxx.xxx.xxx:5060;branch=z9hG4bK546a1def;received=xxx.xxx.xxx.xxx;rport=5060 From: "080AAAAXXXX" <sip: 080AAAAXXXX @xxx.xxx.xxx.xxx>;tag=as1dddca7aTo: <sip:[email protected]>Call-ID: [email protected]: 102 INVITECSeq: 102 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContact: <sip:[email protected]> Content-Length: 0

39

4.Technical Data

4.4.3. GUEST ←PBX

SIP/2.0 200 OK Via:SIP/2.0/UDPxxx.xxx.xxx.xxx:5060;branch=z9hG4bK546a1def;received=xxx.xxx.xxx.xxx;rport=5060 xxx.xxx.xxx.xxx:5060;branch=z9hG4bK546a1def;received=xxx.xxx.xxx.xxx;rport=5060 From: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aTo: <sip:[email protected]>;tag=as577af7ceCall-ID: [email protected]: 102 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContact: <sip:[email protected]> Contact: <sip:[email protected]> Content-Type: application/sdpContent-Length: 220

v=0o=root 22702 22702 IN IP4 000.000.000.000s=sessionc=IN IP4 000.000.000.000t=0 0t=0 0m=audio 18182 RTP/AVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -

4.4.4 GUEST →PBX

ACK sip:[email protected] SIP/2.0Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK3afc8626;rport From: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7aTo: <sip:[email protected]>;tag=as577af7ce Contact: <sip:[email protected]>Contact: <sip:[email protected]>Call-ID: [email protected]: 102 ACKUser-Agent: Asterisk PBX Max-Forwards: 70Content-Length: 0

40

4.Technical Data

4.4.5. GUEST ←PBX

BYE sip:[email protected] SIP/2.0Via: SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK5b3130a7;rport From: <sip:[email protected]>;tag=as577af7ceFrom: <sip:[email protected]>;tag=as577af7ceTo: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7a Call-ID: [email protected]: 102 BYEUser-Agent: Asterisk PBX Max-Forwards: 70Content-Length: 0

4.4.6. GUEST →PBX

SIP/2.0 200 OKVia:SIP/2.0/UDP 000.000.000.000:5060;branch=z9hG4bK5b3130a7;received=000.000.000.000;rport=5060 From: <sip:[email protected]>;tag=as577af7ceTo: "080AAAAXXXX" <sip:[email protected]>;tag=as1dddca7a Call-ID: [email protected]: [email protected]: 102 BYEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesContact: <sip:[email protected]>Content-Length: 0

41

4.Technical Data

4.5. SIP Busy message while incoming call in case receiver is on another call

Busy message sent by SIP Trunk 2 when receiver is currently on another call,

SIP Trunk 2xxx.xxx.xxx.xxx

your IP-PBX000.000.000.000

IP address of SIP Trunk 2

CallerID

INVITEFrom: "080AAAAXXXX" <sip:080AAAAXXXX"@xxx.xxx.xxx.xxx>;tag=as0f1a5f0c

Recipient IP address of your IP-PBX

SIP Trunk 2 server

1

2

From: "080AAAAXXXX" <sip:080AAAAXXXX"@xxx.xxx.xxx.xxx>;tag=as0f1a5f0cTo: <sip:[email protected]>Call-ID: [email protected]

100 TryingFrom: "080AAAAXXXX" <sip:[email protected]>;tag=as0f1a5f0cTo: <sip:[email protected]>Call-ID: [email protected]

3

486 Busy HereFrom: "080AAAAXXXX" <sip:[email protected]>;tag=as0f1a5f0cTo: <sip:[email protected]>Call-ID: [email protected]

ACKFrom: " 080AAAAXXXX" " <sip:[email protected]>;tag=as0f1a5f0c

figure 4.5 SIP flow including Busy message while incoming call

4

From: " 080AAAAXXXX" " <sip:[email protected]>;tag=as0f1a5f0cTo: <sip:[email protected]>Call-ID: [email protected]

figure 4.5 SIP flow including Busy message while incoming call

42

4.Technical Data

4.5.1 GUEST → PBX

INVITE sip:[email protected] SIP/2.0Via:SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK0b7fb7b8;rport From:" 080AAAAXXXX"<sip:[email protected]>;tag=as0f1a5f0c From:" 080AAAAXXXX"<sip:[email protected]>;tag=as0f1a5f0c To: <sip:[email protected]>Contact: <sip: [email protected]>Call-ID: [email protected]: 102 INVITEUser-Agent: Asterisk PBXMax-Forwards: 70Date: Fri, 09 Jul 2010 02:27:46 GMTDate: Fri, 09 Jul 2010 02:27:46 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYSupported: replacesX-Asterisk-Guest-Tag: 00024X-Asterisk-Guest-Uniqueid: 1278642466.508Alert-info: 0312345678Content-Type: application/sdpContent-Length: 242

v=0o=root 4414 4414 IN IP4 xxx.xxx.xxx.xxxs=sessionc=IN IP4 xxx.xxx.xxx.xxxt=0 0m=audio 10408 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20a=sendrecv

4.5.2 PBX → GUEST

SIP/2.0 100 Trying Via: SIP/2.0/UDPxxx.xxx.xxx.xxx:5060;branch=z9hG4bK0b7fb7b8;received=xxx.xxx.xxx.xxx;rport=5060 From: "080AAAAXXXX" <sip:[email protected]>;tag=as0f1a5f0cTo: <sip:[email protected]>Call-ID: [email protected]: [email protected]: 102 INVITEUser-Agent: Asterisk PBXAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFYContact: <sip:[email protected]> Content-Length: 0

43

4.Technical Data

4.5.3. PBX → GUEST

SIP/2.0 486 Busy Here Via: SIP/2.0/UDPxxx.xxx.xxx.xxx:5060;branch=z9hG4bK0b7fb7b8;received=xxx.xxx.xxx.xxx;rport=5060 xxx.xxx.xxx.xxx:5060;branch=z9hG4bK0b7fb7b8;received=xxx.xxx.xxx.xxx;rport=5060 From: " 080AAAAXXXX" <sip:[email protected]>;tag=as0f1a5f0cTo: <sip:[email protected]>Call-ID: [email protected]: 102 INVITEContact: <sip:[email protected]> Content-Length: 0

4.5.4. GUEST→ PBX

Transmitting (NAT) to GUESTACK sip: [email protected] SIP/2.0Via:SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK0b7fb7b8;rport From:"080AAAAXXXX"<sip:[email protected]>;tag=as0f1a5f0c From:"080AAAAXXXX"<sip:[email protected]>;tag=as0f1a5f0c To: <sip:[email protected]>Contact: <sip:[email protected]>Call-ID: [email protected]: 102 ACKUser-Agent: Asterisk PBX Max-Forwards: 70Content-Length: 0Content-Length: 0

44