Release

Search

Messaging via SIP SIMPLE

Link copied to clipboard

In this example, a message is sent between accounts of the same PBX environment using classic (non cluster) PortaSwitch configuration.

Part 1. Sending message

Link copied to clipboard

Log viewer

A sender’s user agent sends a message to the PortaSIP dispatching node
Link copied to clipboard
2019-02-22 15:56:49.274579    SIMPLE    edgeproxy[11675]|mcRd0jnWqR|IS|544| RECEIVED message from UDP:192.168.225.4:5060 at UDP:91.212.34.119:5060
MESSAGE sip:12065550019@91.212.34.119 SIP/2.0
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.QRd5mQCVS;rport=5060;received=192.168.225.4
Max-Forwards: 70
To: sip:12065550019@91.212.34.119
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 20 MESSAGE
Content-Type: text/plain
Date: Fri, 22 Feb 2019 15:56:52 GMT
Supported: replaces, outbound
User-Agent: Linphone Desktop/4.1.1 (belle-sip/1.6.3)
Content-Length: 11

hello world!
The PortaSIP dispatching node transfers the message to the IMGate
Link copied to clipboard
2019-02-22 15:56:49.275586    EXTENDED    edgeproxy[11675]|mcRd0jnWqR|IS|752|
SENDING message to UDP:91.212.34.107:5960 from UDP:91.212.34.119:5060
MESSAGE sip:12065550019@91.212.34.107:5960 SIP/2.0
Via: SIP/2.0/UDP 91.212.34.119:5060;branch=z9hG4bK-524287-1---53e16c3c89d156fa64a66128b905647b;rport
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.QRd5mQCVS;rport=5060;received=192.168.225.4
Max-Forwards: 69
To: sip:12065550019@91.212.34.119
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 20 MESSAGE
Content-Type: text/plain
Date: Fri, 22 Feb 2019 15:56:52 GMT
Supported: replaces, outbound
User-Agent: Linphone Desktop/4.1.1 (belle-sip/1.6.3)
PortaOne-Requested-URI: sip:12065550019@91.212.34.119
PortaSIP-Notify: NAT=192.168.225.4;NAT-type=4
Content-Length: 11

hello world!
IMGate requests digest authentication from the sender’s user agent providing a nonce
Link copied to clipboard
2019-02-22 15:56:49.325481    SIMPLE    edgeproxy[11675]|mcRd0jnWqR|IS|593|
RECEIVED message from UDP:91.212.34.107:5960 at UDP:91.212.34.119:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 91.212.34.119:5060;branch=z9hG4bK-524287-1---53e16c3c89d156fa64a66128b905647b;rport=5060
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.QRd5mQCVS;rport=5060;received=192.168.225.4
To: <sip:12065550019@91.212.34.119>;tag=ab4cc26b
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 20 MESSAGE
WWW-Authenticate: Digest nonce="1550851009:827a445afee5c7abe5b503bf355489a06ebf8653",algorithm=MD5,realm="sip-18.Omega_MR75"
Content-Length: 0
The PortaSIP dispatching node sends authentication request to the sender’s UA
Link copied to clipboard
2019-02-22 15:56:49.325977    SIMPLE    edgeproxy[11675]|mcRd0jnWqR|IS|485|
SENDING message to UDP:192.168.225.4:5060 from UDP:91.212.34.119:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.QRd5mQCVS;rport=5060;received=192.168.225.4
To: <sip:12065550019@91.212.34.119>;tag=ab4cc26b
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 20 MESSAGE
WWW-Authenticate: Digest nonce="1550851009:827a445afee5c7abe5b503bf355489a06ebf8653",algorithm=MD5,realm="sip-18.Omega_MR75"
Content-Length: 0
The sender’s UA sends authorization information to the PortaSIP dispatching node
Link copied to clipboard
2019-02-22 15:56:49.371368    SIMPLE    edgeproxy[11675]|mcRd0jnWqR|IS|776|
RECEIVED message from UDP:192.168.225.4:5060 at UDP:91.212.34.119:5060
MESSAGE sip:12065550019@91.212.34.119 SIP/2.0
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.Zbp~oz2QT;rport=5060;received=192.168.225.4
Max-Forwards: 70
To: sip:12065550019@91.212.34.119
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 21 MESSAGE
Content-Type: text/plain
Date: Fri, 22 Feb 2019 15:56:52 GMT
Supported: replaces, outbound
User-Agent: Linphone Desktop/4.1.1 (belle-sip/1.6.3)
Authorization: Digest realm="sip-18.Omega_MR75", nonce="1550851009:827a445afee5c7abe5b503bf355489a06ebf8653", algorithm=MD5, username="12065550021", uri="sip:12065550019@91.212.34.119", response="4e41e820ae3c5a1743d87ee4d146bb77"
Content-Length: 11

hello world!
The PortaSIP dispatching node transfers the authorization information message to IMGate
Link copied to clipboard
2019-02-22 15:56:49.396946    SIMPLE    imgate[8536]|mcRd0jnWqR|IS|990|
RECEIVED message from UDP:91.212.34.119:5060 at UDP:91.212.34.107:5960
MESSAGE sip:12065550019@91.212.34.107:5960 SIP/2.0
Via: SIP/2.0/UDP 91.212.34.119:5060;branch=z9hG4bK-524287-1---276aec77714342c248faacceffc72349;rport=5060
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.Zbp~oz2QT;rport=5060;received=192.168.225.4
Max-Forwards: 69
To: sip:12065550019@91.212.34.119
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 21 MESSAGE
Content-Type: text/plain
Date: Fri, 22 Feb 2019 15:56:52 GMT
Supported: replaces, outbound
User-Agent: Linphone Desktop/4.1.1 (belle-sip/1.6.3)
Authorization: Digest realm="sip-18.Omega_MR75", nonce="1550851009:827a445afee5c7abe5b503bf355489a06ebf8653", algorithm=MD5, username="12065550021", uri="sip:12065550019@91.212.34.119", response="4e41e820ae3c5a1743d87ee4d146bb77"
PortaOne-Requested-URI: sip:12065550019@91.212.34.119
PortaSIP-Notify: NAT=192.168.225.4;NAT-type=4
Content-Length: 11

hello world!
IMGate sends the authorization request to the PortaBilling and if the PortaBilling authorizes the sender, informs the PortaSIP dispatching node about this and that and the message is accepted
Link copied to clipboard
2019-02-22 15:56:49.472583    SIMPLE    edgeproxy[11675]|mcRd0jnWqR|IS|463|
RECEIVED message from UDP:91.212.34.107:5960 at UDP:91.212.34.119:5060
SIP/2.0 202 Accepted
Via: SIP/2.0/UDP 91.212.34.119:5060;branch=z9hG4bK-524287-1---276aec77714342c248faacceffc72349;rport=5060
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.Zbp~oz2QT;rport=5060;received=192.168.225.4
To: <sip:12065550019@91.212.34.119>;tag=6a810d72
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 21 MESSAGE
Content-Length: 0
The PortaSIP dispatching node informs the sender’s UA that that the authorization is successful the message is accepted
Link copied to clipboard
2019-02-22 15:56:49.472951    SIMPLE    edgeproxy[11675]|mcRd0jnWqR|IS|355|
SENDING message to UDP:192.168.225.4:5060 from UDP:91.212.34.119:5060
SIP/2.0 202 Accepted
Via: SIP/2.0/UDP 192.168.246.34:5060;branch=z9hG4bK.Zbp~oz2QT;rport=5060;received=192.168.225.4
To: <sip:12065550019@91.212.34.119>;tag=6a810d72
From: <sip:12065550021@91.212.34.119>;tag=A7inU09LN
Call-ID: mcRd0jnWqR
CSeq: 21 MESSAGE
Content-Length: 0 

Part 2. Delivering message

Link copied to clipboard

Basic view

IMGate transfers the message to a recipient’s SIP server
Link copied to clipboard
2019-02-22 15:56:49.497956    SIMPLE    edgeproxy[11675]|mcRd0jnWqR~1o|IS|551|
RECEIVED message from UDP:91.212.34.107:5961 at UDP:91.212.34.119:5060
MESSAGE sip:12065550019@192.168.246.191:5061 SIP/2.0
Via: SIP/2.0/UDP 91.212.34.107:5961;branch=z9hG4bK-524287-1---947f67019b8c815d;rport=5961
Max-Forwards: 70
Route: <sip:91.212.34.119:5060;lr;pinhole=UDP:192.168.225.4:5061;ep>
To: <sip:12065550019@91.212.34.119:5060;transport=UDP;lr>
From: <sip:12065550021@91.212.34.119>;tag=46698f1f
Call-ID: mcRd0jnWqR~1o
CSeq: 2 MESSAGE
Allow: OPTIONS, MESSAGE, NOTIFY
Content-Type: text/plain
Content-Length: 11

hello world!
The recipient’s SIP server transfers the message to the recipient’s UA
Link copied to clipboard
2019-02-22 15:56:49.498386    SIMPLE    edgeproxy[11675]|mcRd0jnWqR~1o|IS|582|
SENDING message to UDP:192.168.225.4:5061 from UDP:91.212.34.119:5060
MESSAGE sip:12065550019@192.168.246.191:5061 SIP/2.0
Via: SIP/2.0/UDP 91.212.34.119:5060;branch=z9hG4bK-524287-1---7e7c30948c5dbec8556de029eeef3b30;rport
Via: SIP/2.0/UDP 91.212.34.107:5961;branch=z9hG4bK-524287-1---947f67019b8c815d;rport=5961
Max-Forwards: 69
To: <sip:12065550019@91.212.34.119:5060;transport=UDP;lr>
From: <sip:12065550021@91.212.34.119>;tag=46698f1f
Call-ID: mcRd0jnWqR~1o
CSeq: 2 MESSAGE
Allow: OPTIONS, MESSAGE, NOTIFY
Content-Type: text/plain
Content-Length: 11

hello world!
The recipient’s UA responds to the recipient’s SIP server that the message is accepted
Link copied to clipboard
2019-02-22 15:56:49.532172    SIMPLE    edgeproxy[11675]|mcRd0jnWqR~1o|IS|489|
RECEIVED message from UDP:192.168.225.4:5061 at UDP:91.212.34.119:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.212.34.119:5060;branch=z9hG4bK-524287-1---7e7c30948c5dbec8556de029eeef3b30
Via: SIP/2.0/UDP 91.212.34.107:5961;branch=z9hG4bK-524287-1---947f67019b8c815d;rport=5961
To: <sip:12065550019@91.212.34.119:5060>;tag=7e6fc0ff69c4d29di1
From: <sip:12065550021@91.212.34.119>;tag=46698f1f
Call-ID: mcRd0jnWqR~1o
CSeq: 2 MESSAGE
Server: Linksys/SPA942-6.1.5(a)
Content-Length: 0
The recipient’s SIP server informs IMGate that the message is accepted
Link copied to clipboard
2019-02-22 15:56:49.557624    SIMPLE    imgate[8536]|mcRd0jnWqR~1o|IS|393|
RECEIVED message from UDP:91.212.34.119:5060 at UDP:91.212.34.107:5961
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.212.34.107:5961;branch=z9hG4bK-524287-1---947f67019b8c815d;rport=5961
To: <sip:12065550019@91.212.34.119:5060>;tag=7e6fc0ff69c4d29di1
From: <sip:12065550021@91.212.34.119>;tag=46698f1f
Call-ID: mcRd0jnWqR~1o
CSeq: 2 MESSAGE
Server: Linksys/SPA942-6.1.5(a)
Content-Length: 0

On this page

Release
What's new
Admin manuals
Handbooks
API
UI help
Back to main menu
Search