Newsgroup: it.tlc.telefonia.voip
Titolo: Problemi di conversazioni che cadono

Da un cliente si lamentano spesso che mentre parlano cade la linea, spesso si lamentano che non riescono a telefonare anche se le linee sono libere.
In effetti sul Patton SN4635 collegato alle borchie ed al centralino Asterisk, trovo molti di questi eventi nei log:
Mar  7 08:38:30 192.168.0.33 :650 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 08:38:30 192.168.0.33 :650 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 08:47:48 192.168.0.33 :430 
patton.italpad.it
 SIP: [EP sip-if-00afe948] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 08:47:48 192.168.0.33 :430 
patton.italpad.it
 SIP: [EP sip-if-00afe948] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:03:46 192.168.0.33 :140 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:03:46 192.168.0.33 :140 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:14:35 192.168.0.33 :980 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:14:35 192.168.0.33 :980 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < SM   : Event 'CC-Dropped' (Active State 'Alerting', Passive State 'Idle')
Mar  7 09:40:41 192.168.0.33 :550 
patton.italpad.it
 SIP: [EP sip-if-00b008e8] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle')
Mar  7 09:41:01 192.168.0.33 :890 
patton.italpad.it
 SIP: [EP sip-if-011161f0] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle')
Mar  7 09:42:01 192.168.0.33 :230 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:42:01 192.168.0.33 :230 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:43:13 192.168.0.33 :330 
patton.italpad.it
 SIP: [EP sip-if-00b05310] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:43:13 192.168.0.33 :330 
patton.italpad.it
 SIP: [EP sip-if-00b05310] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:44:59 192.168.0.33 :160 
patton.italpad.it
 SIP: [EP sip-if-01114cf0] < Peer : Cause: Destination out of order -> Code: 502 (Profile: default)
Mar  7 09:44:59 192.168.0.33 :160 
patton.italpad.it
 SIP: [EP sip-if-01114cf0] < SM   : Event 'CC-Dropped' (Active State 'Peer-Proceeding', Passive State 'Idle')
Mar  7 09:45:04 192.168.0.33 :690 
patton.italpad.it
 SIP: [EP sip-if-00b2b898] < Peer : Cause: Destination out of order -> Code: 502 (Profile: default)
Mar  7 09:45:04 192.168.0.33 :690 
patton.italpad.it
 SIP: [EP sip-if-00b2b898] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle')
Mar  7 09:45:13 192.168.0.33 :840 
patton.italpad.it
 SIP: [EP sip-if-00b2b898] < Peer : Cause: Destination out of order -> Code: 502 (Profile: default)
Mar  7 09:45:13 192.168.0.33 :840 
patton.italpad.it
 SIP: [EP sip-if-00b2b898] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle')
Mar  7 09:46:33 192.168.0.33 :280 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:47:20 192.168.0.33 :850 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:47:20 192.168.0.33 :850 
patton.italpad.it
 SIP: [EP sip-if-00b2a308] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:48:16 192.168.0.33 :960 
patton.italpad.it
 SIP: [EP sip-if-010ea2e0] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:48:16 192.168.0.33 :960 
patton.italpad.it
 SIP: [EP sip-if-010ea2e0] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:49:25 192.168.0.33 :910 
patton.italpad.it
 SIP: [EP sip-if-01108c98] < SM   : Event 'CC-Dropped' (Active State 'Peer-Proceeding', Passive State 'Idle')
Mar  7 09:49:39 192.168.0.33 :560 
patton.italpad.it
 SIP: [EP sip-if-0112d858] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle')
Mar  7 09:49:47 192.168.0.33 :260 
patton.italpad.it
 SIP: [EP sip-if-010dc488] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:49:47 192.168.0.33 :270 
patton.italpad.it
 SIP: [EP sip-if-010dc488] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:50:12 192.168.0.33 :910 
patton.italpad.it
 SIP: [EP sip-if-00b129d8] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle')
Mar  7 09:50:17 192.168.0.33 :430 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:50:17 192.168.0.33 :430 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 09:55:49 192.168.0.33 :760 
patton.italpad.it
 SIP: [EP sip-if-010e3ff8] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 09:55:49 192.168.0.33 :760 
patton.italpad.it
 SIP: [EP sip-if-010e3ff8] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 10:01:46 192.168.0.33 :860 
patton.italpad.it
 SIP: [EP sip-if-00b2b198] < Peer : Cause: Destination out of order -> Code: 502 (Profile: default)
Mar  7 10:01:46 192.168.0.33 :860 
patton.italpad.it
 SIP: [EP sip-if-00b2b198] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 10:04:57 192.168.0.33 :450 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < Peer : Cause: Normal call clearing -> Code: 487 (Profile: default)
Mar  7 10:04:57 192.168.0.33 :450 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < SM   : Event 'CC-Dropped' (Active State 'Connected', Passive State 'Idle')
Mar  7 10:06:05 192.168.0.33 :900 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < Peer : Cause: Destination out of order -> Code: 502 (Profile: default)
Mar  7 10:06:05 192.168.0.33 :910 
patton.italpad.it
 SIP: [EP sip-if-010fd618] < SM   : Event 'CC-Dropped' (Active State 'Peer-Trying', Passive State 'Idle
 
Dove trovate Cause: Normal call clearing -> Code: 487 sono i momenti in cui cade la linea mentre stanno parlando.
Invece quando trovate Cause: Destination out of order -> Code: 502 sono i momenti in cui non riescono ad effettuare telefonate, nonostante le linee in quel momento sono libere.
 
Secondo voi come mai?

 linee in quel momento sono libere.
 
502 Bad Gateway
 
Questo di solito è un codice che ti ritorna quando il numero chiamato non 
esiste o ci sono problemi di linea. 
 
Verifica lato asterisk che al 95% il problema è li.
 


Il Bad Gateway l'ho risolto, ho commesso un errore sul Patton, ed ho messo come "no cause drop" il out of order nell'huntgrup.
In sostanza appena trovava la prima borchia occupata, non passava sulla seconda e successivamente sulla terza.... Ora e' OK
Per quanto riguarda il 487 e' un po' piu' complicato.
Oggi il cliente per esempio ha effettuato 287 chiamate, ma nei log solo 32 sono terminate con 487. Quindi in quelle 32 chiamate e' successo qualcosa di diverso!
Se la cosa puo' interessare, nei log del Patton, contestualmente alle cadute di linea trovo sempre quanto segue:
14:50:38  DP    > TDM-BRI-00/00/00: setOperationMode(receive-only)^M
14:50:38  DSP   > Scheduler: removed source processor 0xf56794^M
14:50:38  DP    > TDM-BRI-00/00/00: subtractFromContext(00000020)^M
14:50:38  DP    > TDM-BRI-00/00/00: setOperationMode(inactive)^M
14:50:38  DSP   > [00000000][592270560] State=voice: Event=close^M
14:50:38  DSP   > [00000000][592270560] Set tx plugin to none.^M
14:50:38  DSP   > [00000000][592270560] Set tx media type 2.^M
14:50:38  DSP   > [00000000][592270560] Set rx media type 2.^M
14:50:38  DSP   > [00000000][592270560] Closing (dsp 0, channel 2) ^M
14:50:38  DSP   > [Channel 0 2] SENDING IDLE PACKET^M
14:50:38  DSP   > [00000000][592270560] New state=closed^M
 
Di cosa potrebbe trattarsi?