PDA

Voir la version complète : Installation ELASTIX + ALCATEL



reivilo33
07/02/2014, 19h44
Bonjour à tous et tout excité du projet que j'entame. Voici la configuration que je met en place :
PABX Alcatel 4400 <-------> ELASTIX avec carte TE 405P

En gros je voudrais interconnecter mon pabx avec mon ipbx.

Il y a OXO 4400 avec une carte T2 Opérateur (position 4), une carte T2 Opérateur (position 9) et le serveur Elastix est branché sur une T2 (position 8).

Sur l'OXO 4400, 3 faisceaux sont configurés :
- Completel (faisceau 0), 30 canaux
- Futur Telecom (faisceau 4), 15 canaux
- Elastix (faisceau 6), 30 canaux

J'ai configuré sur l'OXO un préfixe, et quand je fais maintenant le "7" ou "#6" sur mon téléphone Alcatel, je suis sensé passer par le faisceau 6, qui représente ELASTIX.

Sur l'ELASTIX, j'ai créé le trunk dahdi.

Sur l'ELASTIX, j'ai créé aussi une extension SIP pour pouvoir me logguer sur un client SIP sur mon réseau.

Les fichiers de conf :

/etc/dahdi/system.conf :
# Autogenerated by /usr/sbin/dahdi_genconf on Mon Nov 4 13:17:43 2013
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span # 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER)
# mode de transmission des infos de signalisation (ccs : un canal dedie)
# codage utilise pour vehiculer les signaux sur la ligne
# algorithme de detection d'erreur
#span=1,1,0,ccs,hdb3,crc4
# termtype: te
#bchan=1-15,17-31
#dchan=16
#echocanceller=oslec,1-15,17-31

span = 1,1,0,ccs,hdb3
bchan = 1-15,17-31
dchan = 16


# Global data

loadzone = fr
defaultzone = fr



/etc/asterisk/dahdi-channels.conf :
; Autogenerated by /usr/sbin/dahdi_genconf on Wed Nov 6 13:20:51 2013
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span # 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER)
;group=0,11
;context=from-pstn
;switchtype = euroisdn
;signalling = pri_cpe
;channel => 1-15,17-31
;context = default
;group = 63

; definition du groupe de canaux
group = 1
; les appels entrants sur la ligne T2 sont dirigés vers le contexte du plan de $
context = from-pstn
;switchtype = national
; type de lignes PRI (ISDN)
switchtype = euroisdn
; parametre du dialplan utile pour l'operateur
pridialplan = unknown
;prilocaldialplan = unknown
; activation du suppresseur d'écho
echocancel = yes
;activation de l'apprentissage de l'echo par le suppresseur d'echo
;echotraining = yes
; signalisation de l'interface
signalling = pri_net
; definition des canaux
channel => 1-15,17-31
;pridialplan = local
callprogress = yes
language = fr



/etc/asterisk/chan_dahdi.conf :
[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1

;Uncomment these lines if you have problems with the disconection of your analo$
;busydetect=yes
;busycount=3


immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf


Lancement de DAHDI sur ELASTIX :
[root@elastix ~]# /etc/init.d/dahdi start
Loading DAHDI hardware modules:
wct4xxp: [ OK ]

Running dahdi_cfg: [ OK ]

--> Comme on le constate, les modules DAHDI sont bien chargés


Vérification du chargement des modules DAHDI :
[root@elastix ~]# lsmod | grep dahdi
dahdi 214204 70 wct4xxp,oct612x
crc_ccitt 6337 1 dahdi

--> Le module dahdi_voicebus contient la bibliothèque voicebus


Détection de la carte matérielle avec dahdi_scan :
[root@elastix ~]# /usr/sbin/dahdi_scan
[1]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 1
name=TE4/0/1
manufacturer=Digium
devicetype=Wildcard TE405P (2nd Gen)
location=Board ID Switch 0
basechan=1
totchans=31
irq=0
type=digital-E1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
[2]
active=yes
alarms=RED/LFA
description=T4XXP (PCI) Card 0 Span 2
name=TE4/0/2
manufacturer=Digium
devicetype=Wildcard TE405P (2nd Gen)
location=Board ID Switch 0
basechan=32
totchans=31
irq=0
type=digital-E1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=
framing=CAS
[3]
active=yes
alarms=RED/LFA
description=T4XXP (PCI) Card 0 Span 3
name=TE4/0/3
manufacturer=Digium
devicetype=Wildcard TE405P (2nd Gen)
location=Board ID Switch 0
basechan=63
totchans=31
irq=0
type=digital-E1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=
framing=CAS
[4]
active=yes
alarms=RED/LFA
description=T4XXP (PCI) Card 0 Span 4
name=TE4/0/4
manufacturer=Digium
devicetype=Wildcard TE405P (2nd Gen)
location=Board ID Switch 0
basechan=94
totchans=31
irq=0
type=digital-E1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=
framing=CAS

Mon OXO 4400 est branché sur le port 1 de la carte TE405 (le voyant est vert).

Quand je compose le #6 sur un téléphone du réseau OXO cela appelle bien une extension de mon ELASTIX.

Jusque la, pas de problème.


C'est ensuite que les choses se compliquent. En effet j'ai configuré une SDA (branchée sur une carte T2 de mon OXO 4400) qui est routée vers mon ELASTIX.

1- Mon OXO 4400 affiche et envoi bien le numéro qui est le suivant : 05 24 XX XX XX (SDA 9509)

2- Mon asterisk reconnait bien le numéro :
Connected to Asterisk 11.7.0 currently running on elastix3 (pid = 3210)
-- Accepting call from '524xxxxxx' to 's' on channel 0/31, span 1
-- Executing [s@from-pstn:1] NoOp("DAHDI/i1/524xxxxxx-1c", "No DID or CID Match") in new stack
-- Executing [s@from-pstn:2] Answer("DAHDI/i1/524xxxxxx-1c", "") in new stack
-- Executing [s@from-pstn:3] Wait("DAHDI/i1/524xxxxxx-1c", "2") in new stack
-- Executing [s@from-pstn:4] Playback("DAHDI/i1/524xxxxxx-1c", "ss-noservice") in new stack
-- <DAHDI/i1/524xxxxxx-1c> Playing 'ss-noservice.gsm' (language 'en')
-- Executing [s@from-pstn:5] SayAlpha("DAHDI/i1/524xxxxxx-1c", "") in new stack
-- Executing [s@from-pstn:6] Hangup("DAHDI/i1/524xxxxxx-1c", "") in new stack
== Spawn extension (from-pstn, s, 6) exited non-zero on 'DAHDI/i1/524xxxxxx-1c'
-- Executing [h@from-pstn:1] Macro("DAHDI/i1/524xxxxxx-1c", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("DAHDI/i1/524xxxxxx-1c", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("DAHDI/i1/524xxxxxx-1c", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("DAHDI/i1/524xxxxxx-1c", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("DAHDI/i1/524xxxxxx-1c", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("DAHDI/i1/524xxxxxx-1c", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("DAHDI/i1/524xxxxxx-1c", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <DAHDI/i1/524xxxxxx-1c>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("DAHDI/i1/524xxxxxx-1c", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'DAHDI/i1/524xxxxxx-1c' in macro 'hangupcall'
== Spawn extension (from-pstn, h, 1) exited non-zero on 'DAHDI/i1/524xxxxxx-1c'
-- Hungup 'DAHDI/i1/524xxxxxx-1c'


3- J'ai bien rentré la SDA/DID dans mon interface elastix

4- Quand j'appel ma SDA depuis l'extrérieur : 05 24 XX XX XX ca me fait le message vocal comme quoi ca ne fonctionne pas.

Il semble que j'oublie quelque chose dans le trunk DAHDI...

Quelqu'un une idée car je sens que je suis tout pret de but ?

Merci de votre aide et en meme temps j'ai pris le temps de mettre les détails pour ceux que ça aiderais.

jean
07/02/2014, 20h05
t'as fait le plus dur.... la config dahdi & oxo !!!

le pbm vient de là

- Executing [s@from-pstn:1] NoOp("DAHDI/i1/524xxxxxx-1c", "No DID or CID Match") in new stack


mais je suis pas un expert en FPBX/elastix.... je pense qu'il te faut configurer une route entrante, sans spécifier de callerid ou de did... sinon, pour le test, rentrer dans did le numéro de l'extension appelée coté elastix (524xxxxxx) et essayer - ensuite google pour voire comment faire une incoming route catch all

reivilo33
11/02/2014, 16h36
Alors effectivement tu as raison, en créant un DID : "all DID" qui est une route pour tous les numéros inconnus ou non reconnu par le système, j'aririve bien à faire sonner mon poste IP.

Par contre,ça ne m'arrange pas dans le sens ou j'ai 30 canaux possible su ma carte et je voudrais personnaliser les routes pour chacun des canaux.

Comment résoudre ce problème car dans le DID j'ai bien rentré le 524xxxxxx sans le 0.

En fait, c'est comme ci le numéro n'était pas vu ou reconnu...

Dans le trunk DID, peut-on entrer des numéros de DID ?

jean
11/02/2014, 16h58
connecte toi sur la console et fait un
sip set debug ip 1.2.3.4

avec 1.2.3.4 = ip de l'alcatel.... ensuite, passe un appel, et fais un copier coller de l'invite sur le forum - tu verras les détails

reivilo33
11/02/2014, 18h12
Il semble que la commande debug ne fonctionne pas car j'ai le message suivant :
"-bash: sip: command not found"

De plus pour dialoguer avec mon OXE alcatel, je n'utilise pas l'ip. J'utilise la carte T2.

jean
11/02/2014, 19h02
arrgh.... petite faiblesse....

il faut se connecter à la console: asterisk -r
puis lancer un core set verbose 3

puis lancer un appel et copier le résultat

reivilo33
11/02/2014, 19h19
petite faiblesse, mais comment activer la commande debug ?

En attendant, voici les commandes demandés chef :

elastix3*CLI> core set verbose 3
Set remote console verbosity to 3
elastix3*CLI> pri debug span 1
No such command 'pri debug span 1' (type 'core show help pri debug' for other possible commands)
-- Accepting call from '524xxxxxx' to 's' on channel 0/31, span 1
-- Executing [s@from-pstn:1] NoOp("DAHDI/i1/524xxxxxx-1", "No DID or CID Match") in new stack
-- Executing [s@from-pstn:2] Answer("DAHDI/i1/524xxxxxx-1", "") in new stack
-- Executing [s@from-pstn:3] Wait("DAHDI/i1/524xxxxxx-1", "2") in new stack
-- Executing [s@from-pstn:4] Playback("DAHDI/i1/524xxxxxx-1", "ss-noservice") in new stack
-- <DAHDI/i1/524xxxxxx-1> Playing 'ss-noservice.gsm' (language 'en')
-- Executing [s@from-pstn:5] SayAlpha("DAHDI/i1/524xxxxxx-1", "") in new stack
-- Executing [s@from-pstn:6] Hangup("DAHDI/i1/524xxxxxx-1", "") in new stack
== Spawn extension (from-pstn, s, 6) exited non-zero on 'DAHDI/i1/524xxxxxx-1'
-- Executing [h@from-pstn:1] Macro("DAHDI/i1/524xxxxxx-1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i1/524xxxxxx-1", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("DAHDI/i1/524xxxxxx-1", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/i1/524xxxxxx-1", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("DAHDI/i1/524xxxxxx-1", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/i1/524xxxxxx-1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("DAHDI/i1/524xxxxxx-1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/i1/524xxxxxx-1", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("DAHDI/i1/524xxxxxx-1", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/i1/524xxxxxx-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("DAHDI/i1/524xxxxxx-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("DAHDI/i1/524xxxxxx-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("DAHDI/i1/524xxxxxx-1", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <DAHDI/i1/524xxxxxx-1>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("DAHDI/i1/524xxxxxx-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'DAHDI/i1/524xxxxxx-1' in macro 'hangupcall'
== Spawn extension (from-pstn, h, 1) exited non-zero on 'DAHDI/i1/524xxxxxx-1'
-- Hungup 'DAHDI/i1/524xxxxxx-1'

Apparement même constat grand chef :sweat:

jean
11/02/2014, 19h51
et en mettant le numero 524xxxxxx en DID ? voire 524xxxxxx-1 ? ca route ?

reivilo33
11/02/2014, 20h17
Bonne idée mais en mettant 524xxxxxx-1, le système affiche ça :

-- Accepting call from '524xxxxxx' to 's' on channel 0/31, span 1
-- Executing [s@from-pstn:1] NoOp("DAHDI/i1/524xxxxxx-5", "No DID or CID Match") in new stack
....

jean
11/02/2014, 21h01
OK. je pense que le nom du dis n'est pas dans tous les champs. essaie de mettre s en guise de did

reivilo33
13/02/2014, 14h30
merci jean mais quand tu met "s" dans le champ DID, cela revient à créer une route "any", route qui sera emprunté pour tous les numéros inconnus du système.

Je sèche...

jean
13/02/2014, 14h46
un p'tit peu d'eau...

j'ai pas d'install dahdi sous la main, ca facilite pas.... mais en s'inspirant de ovh

=> définis un custom context
[custom-pstn]
avec l'extension s, et mets une commande DumpChan(1) - ca dumpe tout le channel
tu vas voir ou est le numéro appelé - il est bien quelque part !!

ensuite, tu remplaces ton DumpChan par: Goto(from-pstn,<le numero appelé>,1)

reivilo33
13/02/2014, 18h29
=> définis un custom context
[custom-pstn]
avec l'extension s, et mets une commande DumpChan(1) - ca dumpe tout le channel


Cette modification est à mettre dans le fichier "dahdi-channels.conf" ?


Ensuite, effectivement je sais le faire arriver l'appel si je programme une route entrante "all dids", car le numéro affiche mais n'est pas vu par le système.

jean
13/02/2014, 18h32
non, cela se fait via l'interface web fpbx
il y a un menu custom context, et ensuite c'est sur la définition du trunk

reivilo33
13/02/2014, 18h57
sous la version fpx 2.8.1 que j'ai, je ne dispose pas de ce menu sauf si je suis miro :mouais:

jean
13/02/2014, 20h48
sous connectivity, un peu plus haut que le menu pour configurer les trunks.... sinon, aller dans admin/module admin et installer custom context

reivilo33
14/02/2014, 14h03
Excuse moi d'insister mais meme dans les modules à installer dans fpx, je ne vois pas de custom context :
338

et sur le menu du cote, tu vois bien que j'ai rien :
339

Je suis vraiment nul...

jean
14/02/2014, 15h16
ben, dans cet écran, tu vas trouver:
340

Note les jolis boutons bleus qui donnent envie de cliquer à tout être normalement constitué..... ;-)

341

reivilo33
14/02/2014, 22h27
Tu as quelle version de fpx ?

jean
14/02/2014, 22h59
j'ai une 2.11.0.23 et une 2.11.0rc2

mais je pense que le custom context existe depuis longtemps

sinon, il faut localiser sous /etc/asterisk, tu dois avoir un fichier custom-extensions (ou truc du genre) ou tu peux rentrer directement les dialplans

reivilo33
14/02/2014, 23h16
ok je vais commencer par mettre à jour mon fpx... et apres j'irai modifier en "manuel" les fichiers dans /etc/asterisk.

Merci en tous cas de me suivre :wink:

reivilo33
18/02/2014, 18h51
voila mon fpx est à jour et en version 2.11. Donc effectivement après cette MàJ, dans l'onglet connectivity, j'ai bien custom context et custom context admin.

Pour installer mon custom, je vais dans la catégorie custom context admin et je rajoute "custom-pstn". Et ensuite que dois-je faire ?
346

jean
18/02/2014, 20h49
arrghh... tu vas m'en vouloir.... c'est p'tet pas la bonne option.... je suis désolé.... mais bon, t'as un fpbx à jour ;-) - du coup j'ai remonté une image de fpbx sur raspberry pi, qui a le dahdi de configuré !

ouvre un shell, et édite le fichier: /etc/asterisk/extensions_custom.conf

et mets
[from-pstn-custom]
exten => s,1,Verbose(1, ${exten} - $ {context} )
exten => s,n,Dumpchan(1)


ensuite, un dialplan reload depuis la console (il y aura peut être des erreurs), et un core set verbose 1
lance un appel, tu vas voir ce qui se passe

reivilo33
20/02/2014, 16h24
Voici le résultat :
Verbosity was 3 and is now 1
- $ {context}

Dumping Info For Channel: DAHDI/i1/524xxxxxx-10:
================================================== ==============================
Info:
Name= DAHDI/i1/524xxxxxx-10
Type= DAHDI
UniqueID= 1392908867.31
LinkedID= 1392908867.31
CallerIDNum= 524xxxxxx
CallerIDName= (N/A)
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits= (N/A)
RDNIS= (N/A)
Parkinglot=
Language= en
State= Ring (4)
Rings= 1
NativeFormat= 0x8 (alaw)
WriteFormat= 0x8 (alaw)
ReadFormat= 0x8 (alaw)
RawWriteFormat= 0x8 (alaw)
RawReadFormat= 0x8 (alaw)
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 41
Framesin= 0
Framesout= 0
TimetoHangup= 0
ElapsedTime= 0h0m0s
DirectBridge= <none>
IndirectBridge= <none>
Context= from-pstn
Extension= s
Priority= 2
CallGroup=
PickupGroup=
Application= DumpChan
Data= 1
Blocking_in= (Not Blocking)

Variables:
CALLEDTON=1
PRIREDIRECTREASON=UNKNOWN
ANI2=0
TRANSFERCAPABILITY=SPEECH

jean
20/02/2014, 16h44
C'est étrange, je ne vois aucun numéro dans le channel.... peux tu mettre un
exten => s,n,answer()
exten => s,n,Dumpchan(1)

pour voir si le numero apparait

reivilo33
20/02/2014, 19h03
Bien sur, Voila ce que j'ai mis dans mon fichier /etc/asterisk/extensions_custom.conf :
[from-pstn-custom]
exten => s,n,answer()
exten => s,n,Dumpchan(1)


Mon numéro SDA est le 0524xxxxxx.

Voici le resultat :
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '524xxxxxx' number is '524xxxxxx'
dialparties.agi: Methodology of ring is 'ringall'
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 6133 has ExtensionState: 0
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)
dialparties.agi: Extension 6132 has ExtensionState: 4

jean
20/02/2014, 19h43
je perds un peu le fil....

- je ne comprends pas pourquoi le numéro ressort pas dans le dumpchan
- l'agi qui est appelé sert à trouver quelle extension faire sonner - il en trouve 2, 6133 (pas en service) et 6132 (pas dispo) - et d'ou sort-il le numéro

peux tu refaire un appel, avec un core set verbose 3, et copier tout (via pastebin eventuellement) ce qui sort ?

reivilo33
20/02/2014, 20h04
Oui effectivement, ya plus de chose (pour rappel, on essai de voir pourquoi l'appel est router vers la route entrante "any DID / any CID") :

Par défaut les appels arrivent sur un ring group (n° 600) qui sert les postes qui sont connectés :

localhost*CLI> core set verbose 3
Verbosity is at least 3
-- Accepting call from '524xxxxxx' to 's' on channel 0/31, span 1
-- Executing [s@from-pstn:1] Set("DAHDI/i1/524xxxxxx-1e", "__FROM_DID=s") in new stack
-- Executing [s@from-pstn:2] Gosub("DAHDI/i1/524xxxxxx-1e", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/i1/524xxxxxx-1e", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("DAHDI/i1/524xxxxxx-1e", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/i1/524xxxxxx-1e", "") in new stack
-- Executing [s@from-pstn:3] ExecIf("DAHDI/i1/524xxxxxx-1e", "1 ?Set(CALLERID(name)=524579509)") in new stack
-- Executing [s@from-pstn:4] Set("DAHDI/i1/524xxxxxx-1e", "__CALLINGPRES_SV=allowed_passed_screen") in new stack
-- Executing [s@from-pstn:5] Set("DAHDI/i1/524xxxxxx-1e", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@from-pstn:6] Goto("DAHDI/i1/524xxxxxx-1e", "ext-group,600,1") in new stack
-- Goto (ext-group,600,1)
-- Executing [600@ext-group:1] Macro("DAHDI/i1/524xxxxxx-1e", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/i1/524xxxxxx-1e", "AMPUSER=524xxxxxx") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/i1/524xxxxxx-1e", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/i1/524xxxxxx-1e", "1?Set(REALCALLERIDNUM=524xxxxxx)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/i1/524xxxxxx-1e", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/i1/524xxxxxx-1e", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/i1/524xxxxxx-1e", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("DAHDI/i1/524xxxxxx-1e", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("DAHDI/i1/524xxxxxx-1e", "CALLERID(number)=524xxxxxx") in new stack
-- Executing [s@macro-user-callerid:20] Set("DAHDI/i1/524xxxxxx-1e", "CALLERID(name)=524xxxxxx") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("DAHDI/i1/524xxxxxx-1e", "Using CallerID "524xxxxxx" <524xxxxxx>") in new stack
-- Executing [600@ext-group:2] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?skipdb") in new stack
-- Goto (ext-group,600,4)
-- Executing [600@ext-group:4] Set("DAHDI/i1/524xxxxxx-1e", "__NODEST=") in new stack
-- Executing [600@ext-group:5] Set("DAHDI/i1/524xxxxxx-1e", "__BLKVM_OVERRIDE=BLKVM/600/DAHDI/i1/524xxxxxx-1e") in new stack
-- Executing [600@ext-group:6] Set("DAHDI/i1/524xxxxxx-1e", "__BLKVM_BASE=600") in new stack
-- Executing [600@ext-group:7] Set("DAHDI/i1/524xxxxxx-1e", "DB(BLKVM/600/DAHDI/i1/524xxxxxx-1e)=TRUE") in new stack
-- Executing [600@ext-group:8] Set("DAHDI/i1/524xxxxxx-1e", "RRNODEST=") in new stack
-- Executing [600@ext-group:9] Set("DAHDI/i1/524xxxxxx-1e", "__NODEST=600") in new stack
-- Executing [600@ext-group:10] GosubIf("DAHDI/i1/524xxxxxx-1e", "0?sub-rgsetcid,s,1") in new stack
-- Executing [600@ext-group:11] Set("DAHDI/i1/524xxxxxx-1e", "RecordMethod=Group") in new stack
-- Executing [600@ext-group:12] Macro("DAHDI/i1/524xxxxxx-1e", "record-enable,6133-6132,Group") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/i1/524xxxxxx-1e", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?Group:OUT") in new stack
-- Goto (macro-record-enable,s,6)
-- Executing [s@macro-record-enable:6] Set("DAHDI/i1/524xxxxxx-1e", "LOOPCNT=2") in new stack
-- Executing [s@macro-record-enable:7] Set("DAHDI/i1/524xxxxxx-1e", "ITER=1") in new stack
-- Executing [s@macro-record-enable:8] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("DAHDI/i1/524xxxxxx-1e", "ITER=2") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?begin") in new stack
-- Goto (macro-record-enable,s,8)
-- Executing [s@macro-record-enable:8] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("DAHDI/i1/524xxxxxx-1e", "ITER=3") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("DAHDI/i1/524xxxxxx-1e", "0?begin") in new stack
-- Executing [s@macro-record-enable:15] GotoIf("DAHDI/i1/524xxxxxx-1e", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("DAHDI/i1/524xxxxxx-1e", "1?MacroExit()") in new stack
-- Executing [600@ext-group:13] Set("DAHDI/i1/524xxxxxx-1e", "RingGroupMethod=ringall") in new stack
-- Executing [600@ext-group:14] Macro("DAHDI/i1/524xxxxxx-1e", "dial,20,tr,6133-6132") in new stack
-- Executing [s@macro-dial:1] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("DAHDI/i1/524xxxxxx-1e", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '524xxxxxx' number is '524xxxxxx'
dialparties.agi: Methodology of ring is 'ringall'
-- dialparties.agi: Added extension 6133 to extension map
-- dialparties.agi: Added extension 6132 to extension map
-- dialparties.agi: Extension 6133 cf is disabled
-- dialparties.agi: Extension 6132 cf is disabled
-- dialparties.agi: Extension 6133 do not disturb is disabled
-- dialparties.agi: Extension 6132 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 6133 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 6133
-- dialparties.agi: dbset CALLTRACE/6133 to 524xxxxxx
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)
dialparties.agi: Extension 6132 has ExtensionState: 4
-- dialparties.agi: Checking CW and CFB status for extension 6132
-- dialparties.agi: dbset CALLTRACE/6132 to 524xxxxxx
-- dialparties.agi: Filtered ARG3: 6133-6132
-- <DAHDI/i1/524xxxxxx-1e>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("DAHDI/i1/524xxxxxx-1e", "SIP/6133&SIP/6132,20,trM(auto-blkvm)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/6133
-- SIP/6133-00000032 is ringing
-- Span 1: Channel 0/31 got hangup request, cause 16
== Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/i1/524xxxxxx-1e' in macro 'dial'
== Spawn extension (ext-group, 600, 14) exited non-zero on 'DAHDI/i1/524xxxxxx-1e'
-- Executing [h@ext-group:1] Macro("DAHDI/i1/524xxxxxx-1e", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("DAHDI/i1/524xxxxxx-1e", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("DAHDI/i1/524xxxxxx-1e", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("DAHDI/i1/524xxxxxx-1e", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("DAHDI/i1/524xxxxxx-1e", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("DAHDI/i1/524xxxxxx-1e", "0?skipblkvm") in new stack
-- Executing [s@macro-hangupcall:46] NoOp("DAHDI/i1/524xxxxxx-1e", "Cleaning Up Block VM Flag: BLKVM/600/DAHDI/i1/524xxxxxx-1e") in new stack
-- Executing [s@macro-hangupcall:47] NoOp("DAHDI/i1/524xxxxxx-1e", "Deleting: BLKVM/600/DAHDI/i1/524xxxxxx-1e TRUE") in new stack
-- Executing [s@macro-hangupcall:48] GotoIf("DAHDI/i1/524xxxxxx-1e", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("DAHDI/i1/524xxxxxx-1e", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <DAHDI/i1/524xxxxxx-1e>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("DAHDI/i1/524xxxxxx-1e", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'DAHDI/i1/524xxxxxx-1e' in macro 'hangupcall'
== Spawn extension (ext-group, h, 1) exited non-zero on 'DAHDI/i1/524xxxxxx-1e'
-- Hungup 'DAHDI/i1/524xxxxxx-1e'

Voila:miam: