Envoyé par
Hervis
Bonjour, me voila de retour.
Voici le script pour from-pstn
[from-pstn]
exten => 071471310,1,Answer()
exten => 071471310,2,GotoIfTime(09:00-17:30,mon-fri,*,*?,071471310,3:Outoffice,s,1)
exten => 071471310,3,Set(Count=0)
exten => 071471310,4,Background(/tmp/record)
exten => 071471310,n,Set(Count=$[${Count}+1])
exten => 071471310,n,Waitexten(2)
exten => 071471310,n,GotoIf($[''& ${Count}<2]?,071471310,4:s,1)
exten => 1,1,Dial(Sip/102,10)
exten => 1,n,Dial(Sip/101&Sip/102&Sip/201&Sip/202,10)
exten => 1,n,Goto(Messagerie,1101,1)
exten => 2,1,Dial(Sip/201&Sip/202,10)
exten => 2,n,Dial(Sip/101&Sip/102&Sip/201&Sip/202,10)
exten => 2,n,Goto(Messagerie,1101,1)
exten => i,1,Goto(,071471310,3)
exten => s,1,Dial(Sip/101&Sip/102&Sip/201&Sip/202,10)
exten => s,n,Goto(Messagerie,1101,1)
exten => s,n,Hangup()
[TrunkIn]
include => default
Voici la réponse du serveur lors d'un appel :
-- Extension '71471310' in context 'from-pstn' from '479690952' does not exist. Rejecting call on channel 0/1, span 1
[Nov 10 09:15:39] ERROR[3044]: chan_dahdi.c:13579 dahdi_pri_error: 3 Unable to receive TEI from network in state 2(Assign awaiting TEI)!
[Nov 10 09:15:39] ERROR[3043]: chan_dahdi.c:13579 dahdi_pri_error: 2 Unable to receive TEI from network in state 2(Assign awaiting TEI)!
[Nov 10 09:15:39] ERROR[3045]: chan_dahdi.c:13579 dahdi_pri_error: 4 Unable to receive TEI from network in state 2(Assign awaiting TEI)!
Le fichier dahdi-channels.conf
; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 1-2
context = default
group = 63
Merci et bonne journée déjà .