Afin de résoudre le problème des appels entrants sur les astrad
temporairement jusqu’à l’implémentation et la documentation de la
version 8, on peut forcer l’expire sur ces derniers à une valeur
maximum de 3 minutes.
Il faut ajouter dans sip.conf
maxexpiry=150
minexpiry=60
defaultexpiry=120
rtignoreregexpire=yes
rtignoreregexpire: Asterisk continuera à utiliser
l'adresse IP et le port stockés dans la base de données même si
l’enregistrement est expiré.
maxexpiry = 150 et non 180, une marge de flexibilité de
30s.
N.B.
Ce changement augmentera le nombre des requêtes MySQL sur tous les
serveurs (atrad, dba et master). Il faut bien observer l’impact de ce
changement sur l’utilisation CPU des ces serveurs.
Le teste ci-dessous confirme que notre routeur (Swisscom PSE-A)
initialise les ports chaque 3 minutes ce qui explique le choix de la
valeur 150 pour maxexpiry:
Enregistrement du téléphone 41215500327 à 2011/06/24 10:27:23
Date: 2011-06-24 10:27:23
IP: 81.62.117.251
Port: 64920
Appel entrant vers 41215500327 à 2011/06/24 10:30:46
Invites envoyés de l'astrad 94.23.225.212:5060 au téléphone
81.62.117.251:64920
2011/06/24 10:30:46 INVITE
2011/06/24 10:30:47 INVITE
2011/06/24 10:30:48 INVITE
2011/06/24 10:30:50 INVITE
Enregistrement du téléphone 41215500327 à 2011/06/24 10:31:45
Date: 2011-06-24 10:31:45
IP: 81.62.117.251
Port: 55466
le téléphone à changé le port après 3 minute.
Ngrep
Enregistrement du téléphone 41215500327 à 2011/06/24
10:27:23
U 2011/06/24 10:27:23.930929 81.62.117.251:64920 -> 94.23.225.212:5060
REGISTER sip:astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-953a026b.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=b62bcc898f402a31o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16017 REGISTER.
Max-Forwards: 70.
Contact: "41215500327" <sip:41215500327@192.168.1.121:5060>;expires=3600.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
.
U 2011/06/24 10:27:23.931384 94.23.225.212:5060 -> 81.62.117.251:64920
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-953a026b;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=b62bcc898f402a31o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16017 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:41215500327@94.23.225.212>.
Content-Length: 0.
.
U 2011/06/24 10:27:23.931405 94.23.225.212:5060 -> 81.62.117.251:64920
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-953a026b;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=b62bcc898f402a31o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=as739224b3.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16017 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
WWW-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="0d6a58dc".
Content-Length: 0.
.
U 2011/06/24 10:27:23.990584 81.62.117.251:64920 -> 94.23.225.212:5060
REGISTER sip:astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-e4f691a2.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=b62bcc898f402a31o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16018 REGISTER.
Max-Forwards: 70.
Authorization: Digest username="41215500327",realm="switzernet",nonce="0d6a58dc",uri="sip:astrad.switzernet.com",algorithm=MD5,response="18e50b6a4fae8c702efa2768f2adb0fe".
Contact: "41215500327" <sip:41215500327@192.168.1.121:5060>;expires=3600.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
.
U 2011/06/24 10:27:23.990829 94.23.225.212:5060 -> 81.62.117.251:64920
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-e4f691a2;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=b62bcc898f402a31o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16018 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:41215500327@94.23.225.212>.
Content-Length: 0.
.
U 2011/06/24 10:27:24.044157 94.23.225.212:5060 -> 81.62.117.251:64920
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-e4f691a2;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=b62bcc898f402a31o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=as739224b3.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16018 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 3600.
Contact: <sip:41215500327@192.168.1.121:5060>;expires=3600.
Date: Fri, 24 Jun 2011 08:27:24 GMT.
Content-Length: 0.
|
Appel entrant vers 41215500327 à 2011/06/24 10:30:46
U 2011/06/24 10:30:46.989537 94.23.225.212:5060 -> 81.62.117.251:64920
INVITE sip:41215500327@81.62.117.251:64920 SIP/2.0.
Via: SIP/2.0/UDP 94.23.225.212:5060;branch=z9hG4bK54c15356;rport.
From: "41215500329" <sip:41215500329@94.23.225.212>;tag=as4d4fc41d.
To: <sip:41215500327@81.62.117.251:64920>.
Contact: <sip:41215500329@94.23.225.212>.
Call-ID: 33e15f6f24900aff702aa4731428cf42@94.23.225.212.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Fri, 24 Jun 2011 08:30:46 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1497558545-525524018-1046752229-1987084056.
Content-Type: application/sdp.
Content-Length: 386.
U 2011/06/24 10:30:47.989489 94.23.225.212:5060 -> 81.62.117.251:64920
INVITE sip:41215500327@81.62.117.251:64920 SIP/2.0.
Via: SIP/2.0/UDP 94.23.225.212:5060;branch=z9hG4bK54c15356;rport.
From: "41215500329" <sip:41215500329@94.23.225.212>;tag=as4d4fc41d.
To: <sip:41215500327@81.62.117.251:64920>.
Contact: <sip:41215500329@94.23.225.212>.
Call-ID: 33e15f6f24900aff702aa4731428cf42@94.23.225.212.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Fri, 24 Jun 2011 08:30:46 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1497558545-525524018-1046752229-1987084056.
Content-Type: application/sdp.
Content-Length: 386.
U 2011/06/24 10:30:48.989242 94.23.225.212:5060 -> 81.62.117.251:64920
INVITE sip:41215500327@81.62.117.251:64920 SIP/2.0.
Via: SIP/2.0/UDP 94.23.225.212:5060;branch=z9hG4bK54c15356;rport.
From: "41215500329" <sip:41215500329@94.23.225.212>;tag=as4d4fc41d.
To: <sip:41215500327@81.62.117.251:64920>.
Contact: <sip:41215500329@94.23.225.212>.
Call-ID: 33e15f6f24900aff702aa4731428cf42@94.23.225.212.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Fri, 24 Jun 2011 08:30:46 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1497558545-525524018-1046752229-1987084056.
Content-Type: application/sdp.
Content-Length: 386.
U 2011/06/24 10:30:50.989378 94.23.225.212:5060 -> 81.62.117.251:64920
INVITE sip:41215500327@81.62.117.251:64920 SIP/2.0.
Via: SIP/2.0/UDP 94.23.225.212:5060;branch=z9hG4bK54c15356;rport.
From: "41215500329" <sip:41215500329@94.23.225.212>;tag=as4d4fc41d.
To: <sip:41215500327@81.62.117.251:64920>.
Contact: <sip:41215500329@94.23.225.212>.
Call-ID: 33e15f6f24900aff702aa4731428cf42@94.23.225.212.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Fri, 24 Jun 2011 08:30:46 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1497558545-525524018-1046752229-1987084056.
Content-Type: application/sdp.
Content-Length: 386
|
Enregistrement du téléphone 41215500327 à 2011/06/24 10:31:45
U 2011/06/24 10:31:45.777036 81.62.117.251:55466 -> 94.23.225.212:5060
REGISTER sip:astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-7e9eaecc.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=bba2a4bbd7fadfa7o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16019 REGISTER.
Max-Forwards: 70.
Contact: "41215500327" <sip:41215500327@192.168.1.121:5060>;expires=3600.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
.
U 2011/06/24 10:31:45.777485 94.23.225.212:5060 -> 81.62.117.251:55466
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-7e9eaecc;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=bba2a4bbd7fadfa7o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16019 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:41215500327@94.23.225.212>.
Content-Length: 0.
.
U 2011/06/24 10:31:45.777510 94.23.225.212:5060 -> 81.62.117.251:55466
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-7e9eaecc;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=bba2a4bbd7fadfa7o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=as54f7b08f.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16019 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
WWW-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="1da26caa".
Content-Length: 0.
.
U 2011/06/24 10:31:45.835955 81.62.117.251:55466 -> 94.23.225.212:5060
REGISTER sip:astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-52b43d2d.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=bba2a4bbd7fadfa7o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16020 REGISTER.
Max-Forwards: 70.
Authorization: Digest username="41215500327",realm="switzernet",nonce="1da26caa",uri="sip:astrad.switzernet.com",algorithm=MD5,response="d2446c6dd2b1ded2a64e5f914993abab".
Contact: "41215500327" <sip:41215500327@192.168.1.121:5060>;expires=3600.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
.
U 2011/06/24 10:31:45.836213 94.23.225.212:5060 -> 81.62.117.251:55466
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-52b43d2d;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=bba2a4bbd7fadfa7o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16020 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:41215500327@94.23.225.212>.
Content-Length: 0.
.
U 2011/06/24 10:31:45.888865 94.23.225.212:5060 -> 81.62.117.251:55466
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.121:5060;branch=z9hG4bK-52b43d2d;received=81.62.117.251.
From: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=bba2a4bbd7fadfa7o0.
To: "41215500327" <sip:41215500327@astrad.switzernet.com>;tag=as54f7b08f.
Call-ID: b32f4534-e0f190e9@192.168.1.121.
CSeq: 16020 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 3600.
Contact: <sip:41215500327@192.168.1.121:5060>;expires=3600.
Date: Fri, 24 Jun 2011 08:31:45 GMT.
Content-Length: 0.
.
|
|