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![]()
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![]()
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 ?
custom-pstn.JPG
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
Sécurisez votre asterisk, lisez ce post du forum: http://www.asterisk-france.org/showt...-recapitulatif et votre patton: http://www.asterisk-france.org/threa...tage-via-tiers - comprenez le nat : http://www.asterisk-france.org/threa...dio-pas-de-son
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
Dernière modification par reivilo33 ; 20/02/2014 à 17h09.
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
Sécurisez votre asterisk, lisez ce post du forum: http://www.asterisk-france.org/showt...-recapitulatif et votre patton: http://www.asterisk-france.org/threa...tage-via-tiers - comprenez le nat : http://www.asterisk-france.org/threa...dio-pas-de-son
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
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 ?
Sécurisez votre asterisk, lisez ce post du forum: http://www.asterisk-france.org/showt...-recapitulatif et votre patton: http://www.asterisk-france.org/threa...tage-via-tiers - comprenez le nat : http://www.asterisk-france.org/threa...dio-pas-de-son
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![]()