You are on page 1of 50

SIP Server 7.5.

0 / Asterisk Integration
White Paper
Version 0.2

June 28, 2012

Version 0.2

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

3/50

REVISION HISTORY
Revisi
on

Date
Published

Author

Comment

0.1
0.2

March 15, 2007


March 30, 2007

Philippe Rais
Philippe Rais

Initial draft
Added note about secret option (paragraph
3.3.1).

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

4/50

TABLE OF CONTENTS
TABLE OF CONTENTS

1 ARCHITECTURE

1.1 OVERVIEW

1.2 PRIVATE CALLS VS. CONTACT CENTER CALLS

1.2.1 Private calls.............................................................................................................6


1.2.2 Contact center calls................................................................................................6
2 CALL FLOWS

2.1 SUBSCRIPTION

2.2 PRIVATE CALL

2.3 CONTACT CENTER CALL

2.3.1 Inbound call............................................................................................................9


2.3.2 Outbound call........................................................................................................11
3 CONFIGURATION

14

3.1 ENVIRONMENT

14

3.2 GENESYS

14

3.2.1 SIP Server application...........................................................................................14


3.2.2 Asterisk Trunk.......................................................................................................14
3.2.3 Asterisk Extensions...............................................................................................15
3.2.4 External access via Asterisk.................................................................................16
3.3 ASTERISK

16

3.3.1 sip.conf..................................................................................................................17
3.3.2 extensions.conf.....................................................................................................17
4 ANNEX A PRESENCE SUBSCRIPTION

19

5 ANNEX B PRIVATE CALL

27

6 ANNEX C CONTACT CENTER CALL: INBOUND

29

7 ANNEX D CONTACT CENTER CALL: OUTBOUND

41

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

5/50

1 ARCHITECTURE
1.1 OVERVIEW
Stream
Manager

Network

SIP

Asterisk

SIP

SIP Server

TLIB

Genesys
Suite

SIP

TLIB

Figure 1 Architecture overview

Some key points:


-

Endpoints are registered on Asterisk only. They are not registered on SIP
Server.
Agent desktop is required in order to maintain agent status (logged in,
logged out, ready, not ready) toward SIP Server.
Agent desktop is also required in order for the agent to control (hold,
transfer, conference, ) SIP Server calls.
Stream Manager is optional. Most of the Stream Manager capabilities
(music on hold, conference, and treatments) can be reproduced in Asterisk.

1.2 PRIVATE CALLS VS. CONTACT CENTER CALLS


The concept of the integration with Asterisk PBX relies on SIP presence
subscription from SIP Server. For any call handled by the agent endpoint, Asterisk
is requested to provide a notification about the status change for that endpoint.
This principle removes the need for SIP Server to be engaged in the signaling of
each and every call.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

6/50

1.2.1 Private calls


Asterisk dial plan can be setup in such a way that private calls (direct calls to
agent for example) are not forwarded to SIP Server. Instead only the notification
about the busy status of the endpoint is going to be passed to SIP Server. SIP
Server uses this status change notification to set the endpoint DN in a busy state
(EventAgentNotReady) so that the rest of the Genesys suite will not consider that
DN available for routing of the contact center calls.
The principle of private call is represented in the following picture.
Stream
Manager

Network

Inbound call

Asterisk

INVITE

NOTIFY

SIP Server

EventAgentNotReady

Genesys
Suite

EventAgentNotReady

Figure 2 - Schematic for a private call

1.2.2 Contact center calls


The same way Asterisk dial plan is setup to bypass SIP Server for private calls,
some rules can be written such as contact center calls (calls to the service number
of the company typically) are connected by Asterisk to SIP Server.
From that point SIP Server triggers a strategy in order for URS to process this type
of call.
Eventually an agent DN is selected to handle the customer call and SIP Server
initiates a new dialog toward Asterisk for the selected endpoint. Asterisk finally
delivers the call the agent endpoint.
This mechanism creates a signaling loop inside SIP Server who is then in charge
of maintaining the inbound leg from Asterisk (customer leg) with the outbound leg
to Asterisk (agent leg).
Note: From Asterisk standpoint, those 2 legs are seen as 2 completely separate
calls. Correlation is performed at SIP Server level.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

7/50

By staying in the signaling path, SIP Server is aware of any call status change and
can therefore produce call related events (EventRinging, EventEstabl i shed
,
EventReleased, ).
Any call control operation from the agent has to be performed using third party
call control (3pcc) procedure. In other words, agent desktop *must* be used for
any call control operation (beside the answer call operation). This includes but is
not limited to hold, transfer and conference requests.
The principle of contact center call is represented in the following picture.
Stream
Manager

Network

Inbound call

Asterisk

INVITE

INVITE
INVITE

SIP Server

EventEstablished

EventEstablished

Figure 3 - Schematic for a contact center call

Version 0.2

Genesys
Suite

SIP Server 7.5.0 / Asterisk Integration

8/50

2 CALL FLOWS
2.1 SUBSCRIPTION
At startup, SIP Server sends subscription messages in order to be notified about
the endpoints status change.
Asterisk PBX provides NOTIFY messages to SIP Server according to the endpoints
status.
If the endpoints are not registered yet, Asterisk PBX reports their status as
closed.

Asterisk

SUBSCRIBE
NOTIFY

SIP Server

Figure 4 - Presence subscription from SIP Server

As soon as an endpoint register toward Asterisk, a NOTIFY message is sent to SIP


Server with status reported as open.

Asterisk

NOTIFY

SIP Server

REGISTER

Figure 5 - Presence notification to SIP Server

See Annex A PRESENCE SUBSCRIPTION.

2.2 PRIVATE CALL


For private calls, the Asterisk dialing plan is made such as the call is directed
directly toward the endpoint.
Asterisk notifies SIP Server about the call activity on that particular endpoint. In
this case, SIP Server generates EventAgentNotReady so that overall agent status
is seen as non available for contact center calls.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

9/50

Network

Inbound call

Asterisk

INVITE

NOTIFY

SIP Server

EventAgentNotReady

Figure 6 - A private inbound call

As soon as the call is released from the endpoint, Asterisk notifies SIP Server
which then generates EventAgentReady so that the agent is now considered as
available for contact center calls.
See Annex B PRIVATE CALL.
Note: The exact same mechanism happens for private outbound calls. SIP Server
just sees NOTIFY message provided by Asterisk.

2.3 CONTACT CENTER CALL


2.3.1 Inbound call
Inbound contact center calls are programmed within Asterisk dial plan to be
directed toward SIP Server. In this case the call hits a routing point and URS is
triggered.
For
example,
a
call
treatment
can
be
requested
(RequestApplyTreatment) and SIP Server terminates the dialog to Stream
Manager.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

Stream
Manager

Network

Inbound call

Asterisk

10/50

INVITE

INVITE

SIP Server

EventRouteRequest

Genesys
Suite

Figure 7 - Handling a contact center call

Whenever the agent becomes ready, SIP Server receives a RequestRouteCal l


message to the targeted agent endpoint. Such endpoint is configured to point to
Asterisk PBX, so SIP Server is then initiating a new dialog toward Asterisk. Asterisk
forwards the call to the specified endpoint and reports to SIP Server about call
activity on that endpoint with a NOTIFY message (EventAgentNotReady).
Eventually the call is answered, Stream Manager is disconnected and original SIP
dialog is renegotiated between SIP Sever and Asterisk.
Because SIP Server is in the signaling path for the contact center calls, all call
related events (EventRing ing, EventEstabl i shed
, ) are also generated.
Stream
Manager

Network

BYE

Asterisk

INVITE

INVITE
NOTIFY

SIP Server

RequestRouteCall

Genesys
Suite

EventAgentNotReady
EventRinging
EventEstablished

Figure 8 - Delivering the call to the agent

Then when the call is released, Asterisk notifies SIP Server with a NOTIFY message
just like for the case of private calls (EventAgentReady).
And because SIP Server is in the signaling path for that call, EventReleasedis also
generated.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

11/50

Network

Disconnect

Asterisk

BYE

BYE
BYE
NOTIFY

SIP Server

EventAgentReady
EventReleased

Figure 9 - Contact center call disconnection

See Annex C CONTACT CENTER CALL: INBOUND.

2.3.2 Outbound call


Outbound that is contact center related (calling back a customer for example)
must be performed using 3pcc operations. This is to ensure that SIP Server creates
and controls the SIP dialogs on behalf the agent endpoint.
The make call procedure in that case is the one described by RFC3727 (flow 1).
Agent initiates the outbound call with RequestMakeCal l request.
SIP Server sends INVITE to agent endpoint (via Asterisk).
Note: If the phone is not configured with auto answer, then the agent needs to
manually answer the call. This is the only manual action that is required for
contact center calls.
Then SIP Server makes usage of Stream Manager resource in order to produce a
ringback tone to the agent.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

12/50

Stream
Manager

INVITE

Asterisk

INVITE
NOTIFY

SIP Server

RequestMakeCall

INVITE

Figure 10 - Engaging the agent endpoint for outbound call

Then SIP Server contacts the requested destination number. For external
numbers, a rule shall be configured within SIP Server to dial out via Asterisk again
(see External access via Asterisk paragraph).
Once the destination answers the call, SIP Server disconnects ringback tone (BYE
to Stream Manager) and renegotiates with the agent endpoint (via Asterisk) so
that media stream is connected between the agent and the customer.
Stream
Manager

Network

Outbound call

Asterisk

BYE

INVITE
(RE)INVITE

SIP Server

EventEstablished

Figure 11 Connecting to the customer

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

13/50

Although disconnection would work if it were initiated directly from the agent
endpoint, it is good practice to always use desktop application in order to perform
any contact center call related action.
Therefore the disconnection is requested with RequestReleaseCal lto SIP Server.
SIP Server managing the 2 dialogs toward the agent and the customer is sending
BYE message to both of them and the call is eventually disconnected.
Network

Disconnect

Asterisk

BYE

BYE
BYE
NOTIFY

SIP Server

RequestReleaseCall

Figure 12 - Outbound call disconnection

See Annex D CONTACT CENTER CALL: OUTBOUND.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

14/50

3 CONFIGURATION
3.1 ENVIRONMENT
This chapter describes the following environment.
- Asterisk is connected to the network via a SIP gateway
- 2 SIP endpoints 2001 and 2002 are registered toward Asterisk
- Each endpoint is associated with a TLib desktop application
Gateway

SIP

Asterisk
SIP

SIP

SIP Server

SIP
TLIB
2002
TLIB

2001

Figure 13 - Environment used for description

3.2 GENESYS
3.2.1 SIP Server application
There are no particular configuration options related to Asterisk integration at SIP
Server application level.
3.2.2 Asterisk Trunk
The presence SUBSCRIBE/NOTIFY channel is configured by a DN of type Trunk.
The name choice for that DN is arbitrary.
Options needed for this Trunk DN are summarized in the following table.
Option (TServer section)
contact

Value
sip uri

subscribe-presence-domain

string

Version 0.2

Description
Indicates the host and SIP port where SIP Server shall
send SUBSCRIBE message. This is the Asterisk contact
in that case.
Domain name that is passed in SUBSCRIBE request
uri.

SIP Server 7.5.0 / Asterisk Integration


subscribe-presence-from

sip uri

subscribe-presence-expire

integer

15/50

Full uri that is passed into From header of SUBSCRIBE


message.
Value of the SUBSCRIBE Expires header.

For example:

Figure 14 - Asterisk Trunk DN

3.2.3 Asterisk Extensions


For each Asterisk endpoint that needs to be monitored/controlled by SIP Server, a
corresponding DN of type Extension shall be created.
Options needed for the Extension DN are summarized in the following table.
Option (TServer section)
contact

Value
sip uri

dual-dialog-enabled

false

make-call-rfc3725-flow
refer-enabled

1
false

reuse-sdp-on-reinvite
sip-hold-rfc3264

true
true

sip-initial-hold-rfc3264

true

subscribe-presence

string

For example:

Version 0.2

Description
Indicates the host and SIP port where SIP Server shall
send INVITE message to the endpoint. This is the
Asterisk contact in that case.
Consultation calls are handled using the same SIP
dialog toward Asterisk.
3pcc make call flow to be used according to RFC3725.
When using RFC3725 flow, REFER usage toward
Asterisk shall be disabled.
Never send a (RE)INVITE without SDP to Asterisk.
RTP stream hold is done using RFC3264 method
(sendonly).
RTP stream hold is done using RFC3264 method
(sendonly).
This is the name of the Trunk DN that is configured
for presence subscription messages toward Asterisk.

SIP Server 7.5.0 / Asterisk Integration

16/50

Figure 15 - Asterisk Extension DN

3.2.4 External access via Asterisk


In order for SIP Server to contact external numbers by going through Asterisk, one
or several Trunk DN can be configured with contact option set to Asterisk
address and port.
For example, the following Trunk DN defines a rule where any number starting
with digit 0 (and not recognized by SIP Server as an internal DN) shall be directed
to Asterisk.

Figure 16 - A rule to dial out via Asterisk

Multiple rules can be defined. This part of the configuration is identical to the case
where SIP Server is deployed in standalone mode. Accesses to gateways are
replaced in this case by access to Asterisk.

3.3 ASTERISK
The following section describes configuration on the Asterisk side.
This is just an example of a possible Asterisk configuration and there may be
plenty of other ways to configure Asterisk.

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

17/50

3.3.1 sip.conf
Two peers are configured describing both the gateway and SIP Server access.
For example:
[gwsim]
type=peer
host=10.0.0.1
port=5066
context=default
canreinvite=no
[gsip]
type=peer
username=gsip
host=10.0.0.1
context=default
canreinvite=no

Then each endpoint needs to be declared too. The user name of the endpoint shall
match the Extension DN configured on SIP Server side.
For example:
[2001]
type=friend
username=2001
host=dynamic
context=default
notifyringing=yes
canreinvite=no
[2002]
type=friend
username=2002
host=dynamic
context=default
notifyringing=yes
canreinvite=no

Note: SIP Server does not support receiving authentication challenges. For this
reason, Asterisk users must not be configured with secret option. If user
were configured with such option, Asterisk would challenge INVITE
messages issued by SIP Server on behalf the user and SIP Server would fail
responding to the challenge.

3.3.2 extensions.conf
On the dial plan side, each endpoint monitored by SIP Server shall contain a hint
entry. This is in order for Asterisk to properly accept presence subscription (from
SIP Server in that case) for those endpoints.
exten
exten
exten
exten

=>
=>
=>
=>

Version 0.2

2001,hint,SIP/2001
2001,1,Dial(SIP/2001,60)
2002,hint,SIP/2002
2002,1,Dial(SIP/2002,60)

SIP Server 7.5.0 / Asterisk Integration

18/50

A very basic dial plan is configured for contact center calls.


; Inbound call to routing point 2400 -> contact SIP Server
exten => 2400,1,Dial(SIP/${EXTEN}@gsip)

Equally basic is the dial plan for calls to external numbers.


; Any number with prefix 0 -> contact gateway (with remaining digits only)
exten => _0.,1,Dial(SIP/${EXTEN:1}@gwsim,60)

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

19/50

4 ANNEX A PRESENCE SUBSCRIPTION


Asterisk (1)

SIP Server

direct

NULL

TLib Clients
2400
2401

2001

[1] SUBSCRIBE sip:2002@asterisk


[2] SUBSCRIBE sip:2001@asterisk
[3] 200 OK
[4] NOTIFY sip:gsip@phr:5060
[5] 200 OK
[6] 200 OK
[7] NOTIFY sip:gsip@phr:5060
[8] 200 OK
[9] EventDNOutOfService (direct)
[10] NOTIFY sip:gsip@phr:5060
[11] 200 OK
[13] NOTIFY sip:gsip@phr:5060
[14] 200 OK
[18] RequestRegisterClient
[19] EventLinkConnected
[20] RequestQueryServer
[21] EventServerInfo
[22] RequestRegisterAddress (2400)
[23] EventRegistered (2400)
[24] RequestRegisterAddress (2401)
[25] EventRegistered (2401)
[26] RequestRegisterAddress (2001)
[27] EventRegistered (2001)
[28] RequestRegisterAddress (2002)
[29] EventRegistered (2002)
[30] NOTIFY sip:gsip@phr:5060
[31] 200 OK

[1] SUBSCRIBE sip:2002@asterisk ( To "Asterisk (1)" )


SUBSCRIBE sip:2002@asterisk SIP/2.0
From: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-1
To: <sip:2002@asterisk>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-1@10.0.0.1
CSeq: 1 SUBSCRIBE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-1
User-Agent: Genesys SIP Server/7.5.000.11;SIP Stack/7.5.002.06
Event: presence
Accept: application/pidf+xml
Max-Forwards: 70
Contact: <sip:10.0.0.1:5060>

Version 0.2

2002

SIP Server 7.5.0 / Asterisk Integration


Expires: 120
[2] SUBSCRIBE sip:2001@asterisk ( To "Asterisk (1)" )
SUBSCRIBE sip:2001@asterisk SIP/2.0
From: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
To: <sip:2001@asterisk>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 1 SUBSCRIBE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-2
User-Agent: Genesys SIP Server/7.5.000.11;SIP Stack/7.5.002.06
Event: presence
Accept: application/pidf+xml
Max-Forwards: 70
Contact: <sip:10.0.0.1:5060>
Expires: 120
[3] 200 OK ( From "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB1;received=10.0.0.1
From: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-1
To: <sip:2002@asterisk>;tag=as5a6a5c60
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-1@10.0.0.1
CSeq: 1 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 120
Contact: <sip:2002@10.0.0.2>;expires=120
Content-Length: 0
[4] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK32b98eb4;rport
From: <sip:2002@asterisk>;tag=as5a6a5c60
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-1
Contact: <sip:2002@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-1@10.0.0.1
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
<ep:activities><ep:away/></ep:activities>
</status></pp:person>
<note>Not online</note>
<tuple id="2002">
<contact priority="1">sip:2002@asterisk</contact>
<status><basic>closed</basic></status>
</tuple>
</presence>
[5] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK

Version 0.2

20/50

SIP Server 7.5.0 / Asterisk Integration


Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK32b98eb4;rport;received=10.0.0.2
From: <sip:2002@asterisk>;tag=as5a6a5c60
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-1
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-1@10.0.0.1
CSeq: 102 NOTIFY
Content-Length: 0
[6] 200 OK ( From "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB2;received=10.0.0.1
From: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
To: <sip:2001@asterisk>;tag=as334af1e1
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 1 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 120
Contact: <sip:2001@10.0.0.2>;expires=120
Content-Length: 0
[7] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK4acd8299;rport
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
<ep:activities><ep:away /></ep:activities>
</status></pp:person>
<note>Not online</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>closed</basic></status>
</tuple>
</presence>
[8] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK4acd8299;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 102 NOTIFY
Content-Length: 0
[9] EventDNOutOfService (direct) ( To "direct" )
@00:52:42.3810 [0] 7.5.000.11 distribute_event: message EventDNOutOfService
AttributeEventSequenceNumber 0000000000000034
AttributeTimeinuSecs 381000

Version 0.2

21/50

SIP Server 7.5.0 / Asterisk Integration


AttributeTimeinSecs
1172652762 (00:52:42)
AttributeThisDN 'direct'
[10] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK0c105266;rport
From: <sip:2002@asterisk>;tag=as1a7f2fca
To: <sip:gsip@phr:5060>;tag=EE9FF8B5-E97A-42BB-8B39-E3ABEADD569D-1
Contact: <sip:2002@10.0.0.2>
Call-ID: 1C4EAF69-820D-45B2-BA88-647EDFE47564-1@10.0.0.1
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: terminated;reason=timeout
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
<ep:activities><ep:away/></ep:activities>
</status></pp:person>
<note>Not online</note>
<tuple id="2002">
<contact priority="1">sip:2002@asterisk</contact>
<status><basic>closed</basic></status>
</tuple>
</presence>
[11] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK0c105266;rport;received=10.0.0.2
From: <sip:2002@asterisk>;tag=as1a7f2fca
To: <sip:gsip@phr:5060>;tag=EE9FF8B5-E97A-42BB-8B39-E3ABEADD569D-1
Call-ID: 1C4EAF69-820D-45B2-BA88-647EDFE47564-1@10.0.0.1
CSeq: 103 NOTIFY
Expires: 3600
Content-Length: 0
[13] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK293fe37a;rport
From: <sip:2001@asterisk>;tag=as2ead3322
To: <sip:gsip@phr:5060>;tag=EE9FF8B5-E97A-42BB-8B39-E3ABEADD569D-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 1C4EAF69-820D-45B2-BA88-647EDFE47564-2@10.0.0.1
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: terminated;reason=timeout
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>

Version 0.2

22/50

SIP Server 7.5.0 / Asterisk Integration

23/50

<ep:activities><ep:away/></ep:activities>
</status></pp:person>
<note>Not online</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>closed</basic></status>
</tuple>
</presence>
[14] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK293fe37a;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as2ead3322
To: <sip:gsip@phr:5060>;tag=EE9FF8B5-E97A-42BB-8B39-E3ABEADD569D-2
Call-ID: 1C4EAF69-820D-45B2-BA88-647EDFE47564-2@10.0.0.1
CSeq: 103 NOTIFY
Expires: 3600
Content-Length: 0
[18] RequestRegisterClient ( From "NULL" )
00:52:43.473 Trc 04541 RequestRegisterClient received from [1708]
message RequestRegisterClient
Att r i bu tePro toco lVers i on
' t se rver protoco l 4.2 '
AttributeApplicationName
'icom'
Att r i bu teSess ion ID
0
[19] EventLinkConnected ( To "NULL" )
@00:52:43.4730 [0] 7.5.000.11 send_to_client: message EventLinkConnected
AttributeApplicationName
'TServer-SIP-7.5'
AttributeSessionID
18284545
AttributeUserData
[2] 00 00..
AttributeRegistrationCode
0
AttributeEventSequenceNumber 0000000000000035
AttributeServerStartTime
45e542da00038658 (00:52:42.231000)
AttributeTimeinuSecs 473000
AttributeTimeinSecs
1172652763 (00:52:43)
[20] RequestQueryServer ( From "NULL" )
00:52:43.473 Trc 04541 RequestQueryServer received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestQueryServer
AttributeReferenceID 18
AttributeExtensions
[2] 00 00..
[21] EventServerInfo ( To "NULL" )
@00:52:43.4730 [0] 7.5.000.11 send_to_client: message EventServerInfo
AttributeEventSequenceNumber 0000000000000036
AttributeTimeinuSecs 473000
AttributeTimeinSecs
1172652763 (00:52:43)
AttributeReferenceID 18
AttributeExtensions
[304] 00 02 00 00..
'T-Server'
'SIP Server, Version: 7.5.000.11 Compiled: Feb 19 2007 02:41:11
[22] RequestRegisterAddress (2400) ( From "2400" )
00:52:43.473 Trc 04541 RequestRegisterAddress received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestRegisterAddress
AttributeReferenceID 19
AttributeExtensions
[2] 00 00..
AttributeAddressType 0 (Unknown)
AttributeControlMode 0
AttributeRegisterMode 0
AttributeThisDN '2400'
[23] EventRegistered (2400) ( To "2400" )

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

24/50

@00:52:43.4730 [0] 7.5.000.11 send_to_client: message EventRegistered


AttributeEventSequenceNumber 0000000000000037
AttributeTimeinuSecs 473000
AttributeTimeinSecs
1172652763 (00:52:43)
AttributeReferenceID 19
AttributeThisDN '2400'
AttributeExtensions
[17] 00 01 01 00..
'status'
0
AttributeAddressInfoStatus
4
AttributeAddressInfoType
8 (AddressInfoAddressType)
AttributeAddressType 4 (RouteDN)
[24] RequestRegisterAddress (2401) ( From "2401" )
00:52:43.473 Trc 04541 RequestRegisterAddress received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestRegisterAddress
AttributeReferenceID 20
AttributeExtensions
[2] 00 00..
AttributeAddressType 0 (Unknown)
AttributeControlMode 0
AttributeRegisterMode 0
AttributeThisDN '2401'
[25] EventRegistered (2401) ( To "2401" )
@00:52:43.4730 [0] 7.5.000.11 send_to_client: message EventRegistered
AttributeEventSequenceNumber 0000000000000038
AttributeTimeinuSecs 473000
AttributeTimeinSecs
1172652763 (00:52:43)
AttributeReferenceID 20
AttributeThisDN '2401'
AttributeExtensions
[17] 00 01 01 00..
'status'
0
AttributeAddressInfoStatus
4
AttributeAddressInfoType
8 (AddressInfoAddressType)
AttributeAddressType 4 (RouteDN)
[26] RequestRegisterAddress (2001) ( From "2001" )
00:52:43.473 Trc 04541 RequestRegisterAddress received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestRegisterAddress
AttributeReferenceID 21
AttributeExtensions
[2] 00 00..
AttributeAddressType 0 (Unknown)
AttributeControlMode 0
AttributeRegisterMode 0
AttributeThisDN '2001'
[27] EventRegistered (2001) ( To "2001" )
@00:52:43.4730 [0] 7.5.000.11 send_to_client: message EventRegistered
AttributeEventSequenceNumber 0000000000000039
AttributeTimeinuSecs 473000
AttributeTimeinSecs
1172652763 (00:52:43)
AttributeReferenceID 21
AttributeThisDN '2001'
AttributeExtensions
[66] 00 03 01 00..
'AgentStatus' -1
'AgentStatusTimestamp' 0
'status'
0
AttributeAddressInfoStatus
1
AttributeAddressInfoType
8 (AddressInfoAddressType)
AttributeAddressType 1 (DN)
[28] RequestRegisterAddress (2002) ( From "2002" )
00:52:43.473 Trc 04541 RequestRegisterAddress received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestRegisterAddress

Version 0.2

SIP Server 7.5.0 / Asterisk Integration


AttributeReferenceID 22
AttributeExtensions
[2] 00 00..
AttributeAddressType 0 (Unknown)
AttributeControlMode 0
AttributeRegisterMode 0
AttributeThisDN '2002'
[29] EventRegistered (2002) ( To "2002" )
@00:52:43.4730 [0] 7.5.000.11 send_to_client: message EventRegistered
AttributeEventSequenceNumber 000000000000003a
AttributeTimeinuSecs 473000
AttributeTimeinSecs
1172652763 (00:52:43)
AttributeReferenceID 22
AttributeThisDN '2002'
AttributeExtensions
[66] 00 03 01 00..
'AgentStatus' -1
'AgentStatusTimestamp' 0
'status'
0
AttributeAddressInfoStatus
1
AttributeAddressInfoType
8 (AddressInfoAddressType)
AttributeAddressType 1 (DN)
[30] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK6a5d2487;rport
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 471
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
</status></pp:person>
<note>Ready</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[31] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK6a5d2487;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 103 NOTIFY
Content-Length: 0

Version 0.2

25/50

SIP Server 7.5.0 / Asterisk Integration

Version 0.2

26/50

SIP Server 7.5.0 / Asterisk Integration

27/50

5 ANNEX B PRIVATE CALL


Asterisk

SIP Server

TLib Clients
2001

[1] NOTIFY sip:gsip@phr:5060


[2] EventAgentNotReady (2001)
[3] 200 OK
[4] NOTIFY sip:gsip@phr:5060
[5] EventAgentReady (2001)
[6] 200 OK

[1] NOTIFY sip:gsip@phr:5060 ( From "Asterisk" )


NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK2ae9c8fb;rport
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 104 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
<ep:activities><ep:busy/></ep:activities>
</status></pp:person>
<note>On the phone</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[2] EventAgentNotReady (2001) ( To "2001" )
@00:53:40.0640 [0] 7.5.000.11 distribute_event: message EventAgentNotReady
AttributeEventSequenceNumber 0000000000000047
AttributeTimeinuSecs 64000
AttributeTimeinSecs
1172652820 (00:53:40)
AttributeReason [21] 00 01 00 00..
'ReasonCode' 'busy'
AttributeAgentID
'6001'
AttributeThisDN '2001'
[3] 200 OK ( To "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK2ae9c8fb;rport;received=10.0.0.2

Version 0.2

SIP Server 7.5.0 / Asterisk Integration


From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 104 NOTIFY
Content-Length: 0
[4] NOTIFY sip:gsip@phr:5060 ( From "Asterisk" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK59f6f2cf;rport
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 471
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
</status></pp:person>
<note>Ready</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[5] EventAgentReady (2001) ( To "2001" )
@00:54:08.5950 [0] 7.5.000.11 distribute_event: message EventAgentReady
AttributeEventSequenceNumber 0000000000000048
AttributeTimeinuSecs 595000
AttributeTimeinSecs
1172652848 (00:54:08)
AttributeAgentID
'6001'
AttributeThisDN '2001'
[6] 200 OK ( To "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK59f6f2cf;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 106 NOTIFY
Content-Length: 0

Version 0.2

28/50

SIP Server 7.5.0 / Asterisk Integration

29/50

6 ANNEX C CONTACT CENTER CALL: INBOUND


Asterisk (1)

SIP Server

TLib Clients
2400
2001

Stream Manager (2)

[1] INVITE sip:2400@10.0.0.1


[2] EventQueued (2400,4152540543)
[3] EventRouteRequest (2400,4152540543)
[4] 180 Ringing
[5] RequestApplyTreatment (2400)
[6] INVITE sip:annc@phr:5080;play=mymusic/nightvision
[7] 200 OK
[8] EventTreatmentApplied (2400)
[9] 200 OK
[10] ACK sip:10.0.0.1:5080
[11] ACK sip:10.0.0.1:5060
[12] RequestRouteCall (2400,2001)
[13] EventTreatmentEnd (2400)
[14] INVITE sip:2001@colinux:5060
[15] 100 Trying
[16] NOTIFY sip:gsip@phr:5060
[17] EventAgentNotReady (2001)
[18] 200 OK
[19] 180 Ringing
[20] EventRouteUsed (2400,4152540543)
[21] EventDiverted (2400,4152540543)
[22] EventRinging (2001,4152540543)
[23] 200 OK
[24] EventOffHook (2001)
[25] EventEstablished (2001,4152540543)
[26] INVITE sip:4152540543@10.0.0.2
[27] BYE sip:10.0.0.1:5080
[28] 200 OK
[29] 200 OK
[30] ACK sip:4152540543@10.0.0.2
[31] ACK sip:2001@10.0.0.2
[32] BYE sip:10.0.0.1:5060
[33] BYE sip:2001@10.0.0.2
[34] 200 OK
[35] EventAgentReady (2001)
[36] EventReleased (2001,4152540543)
[37] EventOnHook (2001)
[38] 200 OK
[39] NOTIFY sip:gsip@phr:5060
[40] 200 OK

Version 0.2

SIP Server 7.5.0 / Asterisk Integration


[1] INVITE sip:2400@10.0.0.1 ( From "Asterisk (1)" )
INVITE sip:2400@10.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK70dd605c;rport
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:2400@10.0.0.1>
Contact: <sip:4152540543@10.0.0.2>
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 28 Feb 2007 08:54:26 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 206
v=0
o=root 3025 3025 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 17322 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - [2] EventQueued (2400,4152540543) ( To "2400" )
@00:54:26.4810 [0] 7.5.000.11 distribute_event: message EventQueued
AttributeEventSequenceNumber 0000000000000049
AttributeTimeinuSecs 481000
AttributeTimeinSecs
1172652866 (00:54:26)
AttributeExtensions
[50] 00 02 00 00..
'User-Agent' 'Asterisk PBX'
'BusinessCall' 1
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeThisDN '2400'
AttributeOtherDNRole 1
AttributeOtherDN
'4152540543'
[3] EventRouteRequest (2400,4152540543) ( To "2400" )
@00:54:26.4810 [0] 7.5.000.11 distribute_event: message EventRouteRequest
AttributeEventSequenceNumber 000000000000004a
AttributeTimeinuSecs 481000
AttributeTimeinSecs
1172652866 (00:54:26)
AttributeExtensions
[50] 00 02 00 00..
'User-Agent' 'Asterisk PBX'
'BusinessCall' 1
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeThisDN '2400'
AttributeOtherDNRole 1

Version 0.2

30/50

SIP Server 7.5.0 / Asterisk Integration


AttributeOtherDN

31/50

'4152540543'

[4] 180 Ringing ( To "Asterisk (1)" )


SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK70dd605c;rport;received=10.0.0.2
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 102 INVITE
Content-Length: 0
[5] RequestApplyTreatment (2400) ( From "2400" )
00:54:26.491 Trc 04541 RequestApplyTreatment received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestApplyTreatment
AttributeReferenceID 23
AttributeExtensions
[2] 00 00..
AttributeReason [2] 00 00..
AttributeTreatmentParms [69] 00 03 00 00..
'MUSIC_DN'
'mymusic/nightvision'
'APP_ID'
500
'GSIP_APP_ID' 500
AttributeTreatmentType 2 (TreatmentMusic)
AttributeConnID 0117016dee242001
AttributeThisDN '2400'
[6] INVITE sip:annc@phr:5080;play=mymusic/nightvision ( To "Stream Manager (2)" )
INVITE sip:annc@phr:5080;play=mymusic/nightvision SIP/2.0
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:annc@phr:5080;play=mymusic/nightvision>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-3@10.0.0.1
CSeq: 1 INVITE
Content-Length: 206
Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-5
Contact: <sip:10.0.0.1:5060>
Max-Forwards: 70
v=0
o=root 3025 3025 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 17322 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - [7] 200 OK ( From "Stream Manager (2)" )
SIP/2.0 200 OK
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:annc@phr:5080;play=mymusic/nightvision>;tag=A1BEC915-4E42-416B-A628-1D0E60F95AC2-4
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-3@10.0.0.1
CSeq: 1 INVITE
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB5;received=10.0.0.1
Contact: <sip:10.0.0.1:5080>
Content-Type: application/sdp
Content-Length: 198
v=0
o=Genesys 9 9 IN IP4 10.0.0.1
s=StreamManager 7.5.004.00 play
c=IN IP4 10.0.0.1
t=0 0

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

32/50

m=audio 20012 RTP/AVP 0 101


a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:0 pcmu/8000
[8] EventTreatmentApplied (2400) ( To "2400" )
@00:54:26.5110 [0] 7.5.000.11 distribute_response: message EventTreatmentApplied
AttributeEventSequenceNumber 000000000000004b
AttributeTimeinuSecs 511000
AttributeTimeinSecs
1172652866 (00:54:26)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 1
AttributeReason [2] 00 00..
AttributeReferenceID 23
AttributeTreatmentParms [69] 00 03 00 00..
'MUSIC_DN'
'mymusic/nightvision'
'APP_ ID '
500
'GSIP_APP_ID' 500
Att r i bu teTreatmentType 2 (TreatmentMusic )
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeThisDN '2400'
[9] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK70dd605c;rport;received=10.0.0.2
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 102 INVITE
Contact: <sip:10.0.0.1:5060>
Allow: INVITE, ACK, CANCEL, BYE, REFER, MESSAGE, INFO, PRACK
Session-Expires: 1800;refresher=uas
Min-SE: 90
Supported: timer
Content-Type: application/sdp
Content-Length: 198
v=0
o=Genesys 9 9 IN IP4 10.0.0.1
s=StreamManager 7.5.004.00 play
c=IN IP4 10.0.0.1
t=0 0
m=audio 20012 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:0 pcmu/8000
[10] ACK sip:10.0.0.1:5080 ( To "Stream Manager (2)" )
ACK sip:10.0.0.1:5080 SIP/2.0
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:annc@phr:5080;play=mymusic/nightvision>;tag=A1BEC915-4E42-416B-A628-1D0E60F95AC2-4
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-3@10.0.0.1
CSeq: 1 ACK
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-5
[11] ACK sip:10.0.0.1:5060 ( From "Asterisk (1)" )

Version 0.2

SIP Server 7.5.0 / Asterisk Integration


ACK sip:10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK371ca921;rport
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
Contact: <sip:4152540543@10.0.0.2>
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
[12] RequestRouteCall (2400,2001) ( From "2400" )
00:54:37.287 Trc 04541 RequestRouteCall received from [1708] (00020001 icom 10.0.0.1:3530)
message RequestRouteCall
AttributeReferenceID 24
AttributeExtensions
[13] 00 01 00 00..
'DN' '2001'
AttributeReason [2] 00 00..
AttributeRouteType
0 (RouteTypeUnknown)
AttributeOtherDN
'2001'
AttributeConnID 0117016dee242001
AttributeThisDN '2400'
[13] EventTreatmentEnd (2400) ( To "2400" )
@00:54:37.2870 [0] 7.5.000.11 distribute_response: message EventTreatmentEnd
AttributeEventSequenceNumber 000000000000004c
AttributeTimeinuSecs 287000
AttributeTimeinSecs
1172652877 (00:54:37)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 1
AttributeReason [2] 00 00..
AttributeReferenceID 23
AttributeTreatmentParms [69] 00 03 00 00..
'MUSIC_DN'
'mymusic/nightvision'
'APP_ID'
500
'GSIP_APP_ID' 500
AttributeCollectedDigits
''
AttributeTreatmentType 2 (TreatmentMusic)
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeThisDN '2400'
[14] INVITE sip:2001@colinux:5060 ( To "Asterisk (1)" )
INVITE sip:2001@colinux:5060 SIP/2.0
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 1 INVITE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-7
Contact: <sip:10.0.0.1:5060>
DN: 2001
Call-Info: <http://genesyslab.com>; 6f5e2c9f289329eb41aecb10623f712e%4010.0.0.2;genrt=as370214c9;gen-lt=3DC47228-7872-44AF-A51C-116C4B171BDE-3
Max-Forwards: 70
Session-Expires: 1800;refresher=uac
Min-SE: 90
Supported: 100rel,timer

Version 0.2

33/50

SIP Server 7.5.0 / Asterisk Integration


[15] 100 Trying ( From "Asterisk (1)" )
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB7;received=10.0.0.1
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Length: 0
[16] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK43ac7ef3;rport
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 107 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
<ep:activities><ep:busy/></ep:activities>
</status></pp:person>
<note>On the phone</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[17] EventAgentNotReady (2001) ( To "2001" )
@00:54:37.5170 [0] 7.5.000.11 distribute_event: message EventAgentNotReady
AttributeEventSequenceNumber 000000000000004d
AttributeTimeinuSecs 517000
AttributeTimeinSecs
1172652877 (00:54:37)
AttributeReason [21] 00 01 00 00..
'ReasonCode' 'busy'
AttributeAgentID
'6001'
AttributeThisDN '2001'
[18] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK43ac7ef3;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 107 NOTIFY
Content-Length: 0
[19] 180 Ringing ( From "Asterisk (1)" )

Version 0.2

34/50

SIP Server 7.5.0 / Asterisk Integration


SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB7;received=10.0.0.1
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1;tag=as21836576
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Length: 0
[20] EventRouteUsed (2400,4152540543) ( To "2400" )
@00:54:37.5370 [0] 7.5.000.11 distribute_response: message EventRouteUsed
AttributeEventSequenceNumber 000000000000004e
AttributeTimeinuSecs 537000
AttributeTimeinSecs
1172652877 (00:54:37)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 1
AttributeReason [2] 00 00..
AttributeReferenceID 24
AttributeThirdPartyDNRole
2
AttributeThirdPartyDN '2001'
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeOtherDNRole 1
AttributeOtherDN
'4152540543'
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeThisDN '2400'
[21] EventDiverted (2400,4152540543) ( To "2400" )
@00:54:37.5470 [0] 7.5.000.11 distribute_event: message EventDiverted
AttributeEventSequenceNumber 000000000000004f
AttributeTimeinuSecs 547000
AttributeTimeinSecs
1172652877 (00:54:37)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 1
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeOtherDNRole 1
AttributeOtherDN
'4152540543'
AttributeThirdPartyDNRole
2
AttributeThirdPartyDN '2001'
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeThisDN '2400'
[22] EventRinging (2001,4152540543) ( To "2001" )
@00:54:37.5470 [0] 7.5.000.11 distribute_event: message EventRinging
AttributeEventSequenceNumber 0000000000000050
AttributeTimeinuSecs 547000
AttributeTimeinSecs
1172652877 (00:54:37)
AttributeExtensions
[86] 00 02 00 00..
'SIP-Call-ID' '04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1'
'BusinessCall' 1

Version 0.2

35/50

SIP Server 7.5.0 / Asterisk Integration


AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeAgentID
'6001'
AttributeThisDN '2001'
AttributeOtherDNRole 1
AttributeOtherDN
'4152540543'
[23] 200 OK ( From "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB7;received=10.0.0.1
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1;tag=as21836576
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Type: application/sdp
Content-Length: 206
v=0
o=root 3025 3025 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 13512 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - [24] EventOffHook (2001) ( To "2001" )
@00:54:38.0080 [0] 7.5.000.11 distribute_event: message EventOffHook
AttributeEventSequenceNumber 0000000000000051
AttributeTimeinuSecs 8000
AttributeTimeinSecs
1172652878 (00:54:38)
AttributeThisDN '2001'
[25] EventEstablished (2001,4152540543) ( To "2001" )
@00:54:38.0080 [0] 7.5.000.11 distribute_event: message EventEstablished
AttributeEventSequenceNumber 0000000000000052
AttributeTimeinuSecs 8000
AttributeTimeinSecs
1172652878 (00:54:38)
AttributeExtensions
[105] 00 03 01 00..
'WrapUpTime' 0
'SIP-Call-ID' '04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1'
'BusinessCall' 1
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeAgentID
'6001'
AttributeThisDN '2001'

Version 0.2

36/50

SIP Server 7.5.0 / Asterisk Integration

37/50

AttributeOtherDNRole 1
AttributeOtherDN
'4152540543'
[26] INVITE sip:4152540543@10.0.0.2 ( To "Asterisk (1)" )
INVITE sip:4152540543@10.0.0.2 SIP/2.0
From: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
To: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 1 INVITE
Content-Length: 206
Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-8
Contact: <sip:10.0.0.1:5060>
Max-Forwards: 70
Session-Expires: 1800;refresher=uac
Min-SE: 90
Supported: 100rel,timer
v=0
o=root 3025 3025 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 13512 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - [27] BYE sip:10.0.0.1:5080 ( To "Stream Manager (2)" )
BYE sip:10.0.0.1:5080 SIP/2.0
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:annc@phr:5080;play=mymusic/nightvision>;tag=A1BEC915-4E42-416B-A628-1D0E60F95AC2-4
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-3@10.0.0.1
CSeq: 3 BYE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-9
[28] 200 OK ( From "Stream Manager (2)" )
SIP/2.0 200 OK
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:annc@phr:5080;play=mymusic/nightvision>;tag=A1BEC915-4E42-416B-A628-1D0E60F95AC2-4
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-3@10.0.0.1
CSeq: 3 BYE
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB9;received=10.0.0.1
Contact: <sip:10.0.0.1:5080>
Content-Length: 0
[29] 200 OK ( From "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB8;received=10.0.0.1
From: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
To: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:4152540543@10.0.0.2>
Content-Type: application/sdp
Content-Length: 271
v=0
o=root 3025 3027 IN IP4 192.168.1.201

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

38/50

s=session
c=IN IP4 192.168.1.201
t=0 0
m=audio 34970 RTP/AVP 0 110 97 101
a=rtpmap:0 PCMU/8000
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - [30] ACK sip:4152540543@10.0.0.2 ( To "Asterisk (1)" )
ACK sip:4152540543@10.0.0.2 SIP/2.0
From: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
To: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 1 ACK
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-8
Call-Info: <http://genesyslab.com>; 04C499D8-6173-48C2-830E-E89C59B7B074-4%4010.0.0.1;genrt=as21836576;gen-lt=as370214c9
[31] ACK sip:2001@10.0.0.2 ( To "Asterisk (1)" )
ACK sip:2001@10.0.0.2 SIP/2.0
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1;tag=as21836576
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 1 ACK
Content-Length: 271
Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-7
Call-Info: <http://genesyslab.com>; 6f5e2c9f289329eb41aecb10623f712e%4010.0.0.2;genrt=as370214c9;gen-lt=3DC47228-7872-44AF-A51C-116C4B171BDE-3
v=0
o=root 3025 3027 IN IP4 192.168.1.201
s=session
c=IN IP4 192.168.1.201
t=0 0
m=audio 34970 RTP/AVP 0 110 97 101
a=rtpmap:0 PCMU/8000
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - [32] BYE sip:10.0.0.1:5060 ( From "Asterisk (1)" )
BYE sip:10.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK09fcb3cc;rport
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
Contact: <sip:4152540543@10.0.0.2>
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 105 BYE
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
[33] BYE sip:2001@10.0.0.2 ( To "Asterisk (1)" )
BYE sip:2001@10.0.0.2 SIP/2.0
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1;tag=as21836576
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 3 BYE

Version 0.2

SIP Server 7.5.0 / Asterisk Integration


Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB-13
User-Agent: Asterisk PBX
Max-Forwards: 69
[34] 200 OK ( From "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK982A37C6-43EA-4FF0-AB7D-1B86906D4ABB13;received=10.0.0.1
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: sip:2400@10.0.0.1;tag=as21836576
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-4@10.0.0.1
CSeq: 3 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Length: 0
X-Asterisk-HangupCause: Normal Clearing
[35] EventAgentReady (2001) ( To "2001" )
@00:54:49.9250 [0] 7.5.000.11 distribute_event: message EventAgentReady
AttributeEventSequenceNumber 0000000000000053
AttributeTimeinuSecs 925000
AttributeTimeinSecs
1172652889 (00:54:49)
AttributeReason [21] 00 01 00 00..
'ReasonCode' 'busy'
AttributeAgentID
'6001'
AttributeThisDN '2001'
[36] EventReleased (2001,4152540543) ( To "2001" )
@00:54:49.9250 [0] 7.5.000.11 distribute_event: message EventReleased
AttributeEventSequenceNumber 0000000000000054
AttributeTimeinuSecs 925000
AttributeTimeinSecs
1172652889 (00:54:49)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 1
AttributeOtherDNRole 1
AttributeOtherDN
'4152540543'
AttributeANI '4152540543'
AttributeDNIS '2400'
AttributeCallUUID
'S6VB3V5DE14L950ORBSBDTHT5O000001'
AttributeConnID 0117016dee242001
AttributeCallID 1
AttributeCallType
2
AttributeCallState
0
AttributeThisQueue
'2400'
AttributeThisDNRole
2
AttributeAgentID
'6001'
AttributeThisDN '2001'
[37] EventOnHook (2001) ( To "2001" )
@00:54:49.9350 [0] 7.5.000.11 distribute_event: message EventOnHook
AttributeEventSequenceNumber 0000000000000055
AttributeTimeinuSecs 935000
AttributeTimeinSecs
1172652889 (00:54:49)
AttributeThisDN '2001'
[38] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK09fcb3cc;rport;received=10.0.0.2
From: "4152540543" <sip:4152540543@10.0.0.2>;tag=as370214c9
To: <sip:2400@10.0.0.1>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-3
Call-ID: 6f5e2c9f289329eb41aecb10623f712e@10.0.0.2
CSeq: 105 BYE

Version 0.2

39/50

SIP Server 7.5.0 / Asterisk Integration


Contact: <sip:10.0.0.1:5060>
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
X-Asterisk-HangupCause: Normal Clearing
Content-Length: 0
[39] NOTIFY sip:gsip@phr:5060 ( From "Asterisk (1)" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK271d7bc9;rport
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Contact: <sip:2001@10.0.0.2>
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 109 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 471
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
</status></pp:person>
<note>Ready</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[40] 200 OK ( To "Asterisk (1)" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK271d7bc9;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as334af1e1
To: <sip:gsip@phr:5060>;tag=3DC47228-7872-44AF-A51C-116C4B171BDE-2
Call-ID: 04C499D8-6173-48C2-830E-E89C59B7B074-2@10.0.0.1
CSeq: 109 NOTIFY
Content-Length: 0

Version 0.2

40/50

SIP Server 7.5.0 / Asterisk Integration

41/50

7 ANNEX D CONTACT CENTER CALL: OUTBOUND


Asterisk

SIP Server

TLib Clients
2001
SIP-7.5::

Stream Manager

[1] RequestMakeCall (2001,04152540543)


[2] INVITE sip:2001@colinux:5060
[3] 100 Trying
[4] 180 Ringing
[5] EventOffHook (2001)
[6] EventDialing (2001,04152540543)
[7] NOTIFY sip:gsip@phr:5060
[8] 200 OK
[9] 200 OK
[10] INVITE sip:04152540543@colinux:5060
[11] 100 Trying
[12] 180 Ringing
[13] EventNetworkReached (2001,04152540543)
[14] INVITE sip:annc@phr:5080;play=music /ring_back
[15] 200 OK
[16] ACK sip:2001@10.0.0.2
[17] ACK sip:172.21.9.220:5080
[18] 200 OK
[19] INVITE sip:2001@10.0.0.2
[20] BYE sip:172.21.9.220:5080
[21] 200 OK
[22] 200 OK
[23] ACK sip:2001@10.0.0.2
[24] ACK sip:04152540543@10.0.0.2
[25] EventEstablished (2001,04152540543)
[26] RequestReleaseCall (2001)
[27] BYE sip:2001@10.0.0.2
[28] BYE sip:04152540543@10.0.0.2
[29] 200 OK
[30] EventReleased (2001,04152540543)
[31] EventOnHook (2001)
[32] 200 OK
[33] NOTIFY sip:gsip@phr:5060
[34] 200 OK
[35] EventReleased (SIP-7.5::)

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

42/50

[1] RequestMakeCall (2001,04152540543) ( From "2001" )


13:08:01.692 Trc 04541 RequestMakeCall received from [1640] (00040003 DesktopApp 10.0.0.1:1729)
message RequestMakeCall
AttributeReferenceID 37
AttributeExtensions
[15] 00 01 00 00..
'KEY4' 'WXYZ'
AttributeUserData
[39] 00 03 00 00..
'KEY1' 'ABCD'
'KEY2' 1234
'KEY3' bin: 01 02
AttributeLocation
''
AttributeMakeCallType 0 (MakeCallRegular)
AttributeOtherDN
'04152540543'
AttributeThisDN '2001'
[2] INVITE sip:2001@colinux:5060 ( To "Asterisk" )
INVITE sip:2001@colinux:5060 SIP/2.0
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 1 INVITE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-191
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, BYE, REFER
Contact: <sip:2001@10.0.0.1:5060>
Session-Expires: 1800;refresher=uac
Min-SE: 90
Supported: timer
[3] 100 Trying ( From "Asterisk" )
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5191;received=10.0.0.1
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Length: 0
[4] 180 Ringing ( From "Asterisk" )
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5191;received=10.0.0.1
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Length: 0
[5] EventOffHook (2001) ( To "2001" )
@13:08:01.9720 [0] 7.5.000.14 distribute_event: message EventOffHook
AttributeEventSequenceNumber 00000000000000d6
AttributeTimeinuSecs 972000
AttributeTimeinSecs
1173989281 (13:08:01)
AttributeThisDN '2001'
[6] EventDialing (2001,04152540543) ( To "2001" )

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

@13:08:01.9820 [0] 7.5.000.14 distribute_response: message EventDialing


AttributeEventSequenceNumber 00000000000000d7
AttributeTimeinuSecs 982000
AttributeTimeinSecs
1173989281 (13:08:01)
AttributeExtensions
[87] 00 02 00 00..
'SIP-Call-ID' 'F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1'
'BusinessCall' 0
AttributeReferenceID 37
AttributeANI '2001'
AttributeDNIS '04152540543'
AttributeUserData
[39] 00 03 00 00..
'KEY1' 'ABCD'
'KEY2' 1234
'KEY3' bin: 01 02
AttributeCallUUID
'G4Q0S4JBQ13ML76VQK9CCPSQ48000018'
AttributeConnID 0117016f33fb000e
AttributeCallID 14
AttributeCallType
0
AttributeCallState
0
AttributeThisDNRole
1
AttributeAgentID
'6001'
AttributeThisDN '2001'
AttributeOtherDNRole 2
AttributeOtherDN
'04152540543'
[7] NOTIFY sip:gsip@phr:5060 ( From "Asterisk" )
NOTIFY sip:gsip@phr:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK2dc27a5d;rport
From: <sip:2001@asterisk>;tag=as399f322c
To: <sip:gsip@phr:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-2
Contact: <sip:2001@10.0.0.2>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-2@10.0.0.1
CSeq: 122 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 520
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
<ep:activities><ep:busy/></ep:activities>
</status></pp:person>
<note>On the phone</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[8] 200 OK ( To "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK2dc27a5d;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as399f322c
To: <sip:gsip@phr:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-2
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-2@10.0.0.1
CSeq: 122 NOTIFY
Content-Length: 0
[9] 200 OK ( From "Asterisk" )

Version 0.2

43/50

SIP Server 7.5.0 / Asterisk Integration

44/50

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5191;received=10.0.0.1
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Type: application/sdp
Content-Length: 150
v=0
o=root 2983 2983 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 15480 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - [10] INVITE sip:04152540543@colinux:5060 ( To "Asterisk" )
INVITE sip:04152540543@colinux:5060 SIP/2.0
From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 1 INVITE
Content-Length: 150
Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-192
Contact: <sip:10.0.0.1:5060>
Call-Info: <http://genesyslab.com>; F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41%4010.0.0.1;genrt=as16f1101c;gen-lt=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
Max-Forwards: 70
Session-Expires: 1800;refresher=uac
Min-SE: 90
Supported: 100rel,timer
v=0
o=root 2983 2983 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 15480 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - [11] 100 Trying ( From "Asterisk" )
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5192;received=10.0.0.1
From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:04152540543@10.0.0.2>
Content-Length: 0
[12] 180 Ringing ( From "Asterisk" )
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5192;received=10.0.0.1

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

45/50

From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>;tag=as5b53fb1a
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:04152540543@10.0.0.2>
Content-Length: 0
[13] EventNetworkReached (2001,04152540543) ( To "2001" )
@13:08:02.4030 [0] 7.5.000.14 distribute_event: message EventNetworkReached
AttributeEventSequenceNumber 00000000000000d8
AttributeTimeinuSecs 403000
AttributeTimeinSecs
1173989282 (13:08:02)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 0
AttributeANI '2001'
AttributeDNIS '04152540543'
AttributeUserData
[39] 00 03 00 00..
'KEY1' 'ABCD'
'KEY2' 1234
'KEY3' bin: 01 02
AttributeCallUUID
'G4Q0S4JBQ13ML76VQK9CCPSQ48000018'
AttributeConnID 0117016f33fb000e
AttributeCallID 14
AttributeCallType
3
AttributeCallState
0
AttributeThisDNRole
1
AttributeAgentID
'6001'
AttributeThisDN '2001'
AttributeOtherDNRole 2
AttributeOtherDN
'04152540543'
[14] INVITE sip:annc@phr:5080;play=music/ring_back ( To "Stream Manager" )
INVITE sip:annc@phr:5080;play=music/ring_back SIP/2.0
From: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
To: <sip:annc@phr:5080;play=music/ring_back>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-43@10.0.0.1
CSeq: 1 INVITE
Content-Length: 150
Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-193
Contact: <sip:10.0.0.1:5060>
Max-Forwards: 70
v=0
o=root 2983 2983 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 15480 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - [15] 200 OK ( From "Stream Manager" )
SIP/2.0 200 OK
From: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
To: <sip:annc@phr:5080;play=music/ring_back>;tag=6ACCDD30-E25F-4087-8188-B2699B40D4C0-13
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-43@10.0.0.1
CSeq: 1 INVITE
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5193;received=10.0.0.1
Contact: <sip:172.21.9.220:5080>
Content-Type: application/sdp
Content-Length: 152

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

46/50

v=0
o=Genesys 13 13 IN IP4 172.21.9.220
s=StreamManager 7.5.004.02 play
c=IN IP4 172.21.9.220
t=0 0
m=audio 20026 RTP/AVP 0
a=rtpmap:0 pcmu/8000
[16] ACK sip:2001@10.0.0.2 ( To "Asterisk" )
ACK sip:2001@10.0.0.2 SIP/2.0
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 1 ACK
Content-Length: 152
Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-191
v=0
o=Genesys 13 13 IN IP4 172.21.9.220
s=StreamManager 7.5.004.02 play
c=IN IP4 172.21.9.220
t=0 0
m=audio 20026 RTP/AVP 0
a=rtpmap:0 pcmu/8000
[17] ACK sip:172.21.9.220:5080 ( To "Stream Manager" )
ACK sip:172.21.9.220:5080 SIP/2.0
From: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
To: <sip:annc@phr:5080;play=music/ring_back>;tag=6ACCDD30-E25F-4087-8188-B2699B40D4C0-13
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-43@10.0.0.1
CSeq: 1 ACK
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-193
[18] 200 OK ( From "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5192;received=10.0.0.1
From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>;tag=as5b53fb1a
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:04152540543@10.0.0.2>
Content-Type: application/sdp
Content-Length: 150
v=0
o=root 2983 2983 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 15580 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - [19] INVITE sip:2001@10.0.0.2 ( To "Asterisk" )
INVITE sip:2001@10.0.0.2 SIP/2.0
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 2 INVITE
Content-Length: 150

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

47/50

Content-Type: application/sdp
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-194
Contact: <sip:10.0.0.1:5060>
Call-Info: <http://genesyslab.com>; F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42%4010.0.0.1;genrt=as5b53fb1a;gen-lt=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
Max-Forwards: 70
Session-Expires: 1800;refresher=uac
Min-SE: 90
Supported: timer
v=0
o=root 2983 2983 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 15580 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - [20] BYE sip:172.21.9.220:5080 ( To "Stream Manager" )
BYE sip:172.21.9.220:5080 SIP/2.0
From: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
To: <sip:annc@phr:5080;play=music/ring_back>;tag=6ACCDD30-E25F-4087-8188-B2699B40D4C0-13
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-43@10.0.0.1
CSeq: 2 BYE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-195
[21] 200 OK ( From "Stream Manager" )
SIP/2.0 200 OK
From: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
To: <sip:annc@phr:5080;play=music/ring_back>;tag=6ACCDD30-E25F-4087-8188-B2699B40D4C0-13
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-43@10.0.0.1
CSeq: 2 BYE
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5195;received=172.21.9.220
Contact: <sip:172.21.9.220:5080>
Content-Length: 0
[22] 200 OK ( From "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5194;received=10.0.0.1
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Type: application/sdp
Content-Length: 150
v=0
o=root 2983 2984 IN IP4 10.0.0.2
s=session
c=IN IP4 10.0.0.2
t=0 0
m=audio 15480 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - [23] ACK sip:2001@10.0.0.2 ( To "Asterisk" )
ACK sip:2001@10.0.0.2 SIP/2.0
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29

Version 0.2

SIP Server 7.5.0 / Asterisk Integration

48/50

To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 2 ACK
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-194
[24] ACK sip:04152540543@10.0.0.2 ( To "Asterisk" )
ACK sip:04152540543@10.0.0.2 SIP/2.0
From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>;tag=as5b53fb1a
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 1 ACK
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-192
[25] EventEstablished (2001,04152540543) ( To "2001" )
@13:08:04.4560 [0] 7.5.000.14 distribute_event: message EventEstablished
AttributeEventSequenceNumber 00000000000000d9
AttributeTimeinuSecs 456000
AttributeTimeinSecs
1173989284 (13:08:04)
AttributeExtensions
[106] 00 03 01 00..
'WrapUpTime' 0
'SIP-Call-ID' 'F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1'
'BusinessCall' 0
AttributeANI '2001'
AttributeDNIS '04152540543'
AttributeUserData
[39] 00 03 00 00..
'KEY1' 'ABCD'
'KEY2' 1234
'KEY3' bin: 01 02
AttributeCallUUID
'G4Q0S4JBQ13ML76VQK9CCPSQ48000018'
AttributeConnID 0117016f33fb000e
AttributeCallID 14
AttributeCallType
3
AttributeCallState
0
AttributeThisDNRole
1
AttributeAgentID
'6001'
AttributeThisDN '2001'
AttributeOtherDNRole 2
AttributeOtherDN
'04152540543'
[26] RequestReleaseCall (2001) ( From "2001" )
13:08:08.302 Trc 04541 RequestReleaseCall received from [1640] (00040003 DesktopApp 10.0.0.1:1729)
message RequestReleaseCall
AttributeReferenceID 38
AttributeConnID 0117016f33fb000e
AttributeThisDN '2001'
[27] BYE sip:2001@10.0.0.2 ( To "Asterisk" )
BYE sip:2001@10.0.0.2 SIP/2.0
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 3 BYE
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-196
[28] BYE sip:04152540543@10.0.0.2 ( To "Asterisk" )
BYE sip:04152540543@10.0.0.2 SIP/2.0
From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>;tag=as5b53fb1a
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 2 BYE
Content-Length: 0

Version 0.2

SIP Server 7.5.0 / Asterisk Integration


Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5-197
[29] 200 OK ( From "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5196;received=10.0.0.1
From: <sip:04152540543@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-29
To: <sip:2001@10.0.0.1:5060>;tag=as16f1101c
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-41@10.0.0.1
CSeq: 3 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2001@10.0.0.2>
Content-Length: 0
X-Asterisk-HangupCause: Normal Clearing
[30] EventReleased (2001,04152540543) ( To "2001" )
@13:08:08.3120 [0] 7.5.000.14 distribute_response: message EventReleased
AttributeEventSequenceNumber 00000000000000da
AttributeTimeinuSecs 312000
AttributeTimeinSecs
1173989288 (13:08:08)
AttributeExtensions
[23] 00 01 01 00..
'BusinessCall' 0
AttributeReferenceID 38
AttributeOtherDNRole 2
AttributeOtherDN
'04152540543'
AttributeANI '2001'
AttributeDNIS '04152540543'
AttributeUserData
[39] 00 03 00 00..
'KEY1' 'ABCD'
'KEY2' 1234
'KEY3' bin: 01 02
AttributeCallUUID
'G4Q0S4JBQ13ML76VQK9CCPSQ48000018'
AttributeConnID 0117016f33fb000e
AttributeCallID 14
AttributeCallType
3
AttributeCallState
0
AttributeThisDNRole
1
AttributeAgentID
'6001'
AttributeThisDN '2001'
[31] EventOnHook (2001) ( To "2001" )
@13:08:08.3620 [0] 7.5.000.14 distribute_event: message EventOnHook
AttributeEventSequenceNumber 00000000000000db
AttributeTimeinuSecs 362000
AttributeTimeinSecs
1173989288 (13:08:08)
AttributeThisDN '2001'
[32] 200 OK ( From "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.1:5060;branch=z9hG4bK9C92C5D9-4B03-45E4-86EC-AB2BEA98FAE5197;received=10.0.0.1
From: <sip:2001@10.0.0.1:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-30
To: <sip:04152540543@10.0.0.1:5060>;tag=as5b53fb1a
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-42@10.0.0.1
CSeq: 2 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:04152540543@10.0.0.2>
Content-Length: 0
X-Asterisk-HangupCause: Normal Clearing
[33] NOTIFY sip:gsip@phr:5060 ( From "Asterisk" )
NOTIFY sip:gsip@phr:5060 SIP/2.0

Version 0.2

49/50

SIP Server 7.5.0 / Asterisk Integration


Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK60e44b4e;rport
From: <sip:2001@asterisk>;tag=as399f322c
To: <sip:gsip@phr:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-2
Contact: <sip:2001@10.0.0.2>
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-2@10.0.0.1
CSeq: 123 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 471
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:gsip@phr:5060">
<pp:person><status>
</status></pp:person>
<note>Ready</note>
<tuple id="2001">
<contact priority="1">sip:2001@asterisk</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
[34] 200 OK ( To "Asterisk" )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.2:5060;branch=z9hG4bK60e44b4e;rport;received=10.0.0.2
From: <sip:2001@asterisk>;tag=as399f322c
To: <sip:gsip@phr:5060>;tag=506F7777-63E1-4BC9-858E-AFDE67B2AFCB-2
Call-ID: F20C79BA-EF95-42E0-97FC-E3ED5AD64404-2@10.0.0.1
CSeq: 123 NOTIFY
Content-Length: 0
[35] EventReleased (SIP-7.5::) ( To "SIP-7.5::" )
@13:08:09.4330 [0] 7.5.000.14 distribute_event: message EventReleased
AttributeEventSequenceNumber 00000000000000dc
AttributeTimeinuSecs 433000
AttributeTimeinSecs
1173989289 (13:08:09)
AttributeReliability 1
AttributeANI '2001'
AttributeDNIS '04152540543'
AttributeUserData
[39] 00 03 00 00..
'KEY1' 'ABCD'
'KEY2' 1234
'KEY3' bin: 01 02
AttributeCallUUID
'G4Q0S4JBQ13ML76VQK9CCPSQ48000018'
AttributeConnID 0117016f33fb000e
AttributeCallID 14
AttributeCallType
3
AttributeThisDN 'SIP-7.5::'

Version 0.2

50/50

You might also like