J'avance dans mes tests mais je n'arrive toujours pas à faire fonctionner les appels que ce soit entrants ou sortants.
J'ai installé un autre xivo afin de simuler le réseau public avec divers n°. J'ai essayé avec et sans "Accepter un appel non authentifié" (allowguest)
D'après ce que j'a lu il faut inclure le context sortant et entrant dans le context interne, ce que j'ai fait mais ça ne fonctionne pas.
- Pour les appels sortants, alors que mon trunk bien enregistré sur le xivo "public".
Code:
[Sep 29 19:14:11] -- Executing [dial@outcall:5] CELGenUserEvent("SIP/rkaimy9q-00000006", "XIVO_OUTCALL") in new stack
[Sep 29 19:14:11] -- Executing [dial@outcall:6] Set("SIP/rkaimy9q-00000006", "CONNECTEDLINE(num,i)=04XXXXXX10") in new stack
[Sep 29 19:14:11] -- Executing [dial@outcall:7] Dial("SIP/rkaimy9q-00000006", "SIP/principal/04XXXXXX10,,o(04XXXXXX10)") in new stack
[Sep 29 19:14:11] WARNING[18845][C-00000007]: app_dial.c:2429 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Sep 29 19:14:11] == Everyone is busy/congested at this time (1:0/0/1)
[Sep 29 19:14:11] -- Executing [dial@outcall:8] Goto("SIP/rkaimy9q-00000006", "CHANUNAVAIL,1") in new stack
[Sep 29 19:14:11] -- Goto (outcall,CHANUNAVAIL,1)75292180
[Sep 29 19:14:11] -- Executing [CHANUNAVAIL@outcall:1] Goto("SIP/rkaimy9q-00000006", "redial,1") in new stack
[Sep 29 19:14:11] -- Goto (outcall,redial,1)
[Sep 29 19:14:11] -- Executing [redial@outcall:1] Set("SIP/rkaimy9q-00000006", "TRUNKINDEX=1") in new stack
[Sep 29 19:14:11] -- Executing [redial@outcall:2] GotoIf("SIP/rkaimy9q-00000006", "?dial,1") in new stack
[Sep 29 19:14:11] -- Executing [redial@outcall:3] Playback("SIP/rkaimy9q-00000006", "congestion-call") in new stack
[Sep 29 19:14:11] > 0x27e4a70 -- Probation passed - setting RTP source address to 192.168.1.3:7078
Code:
xivo*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.1.20:5260 N bejo96wo 45 Registered Thu, 29 Sep 2016 23:25:58
1 SIP registrations.
Code:
xivo*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
bejo96wo/s 192.168.1.19 D Yes Yes 5260 OK (1 ms) "asterisk" <04XXXXX14>
u10sagb2/u10sagb2 192.168.1.14 D Yes Yes 44844 OK (513 ms) "renaud" <04XXXXX10>
- Pour les appels entrants : il trouve une boucle et si je ne mets pas le context entrant dans le context interne ça me dit not found donc apparemment il le faut bien...
Code:
[Sep 29 22:15:34] -- Executing [userevent@hangup_handlers:1] NoOp("SIP/rkaimy9q-0000001d", "Sending Hangup userevent") in new stack
[Sep 29 22:15:34] -- Executing [userevent@hangup_handlers:2] UserEvent("SIP/rkaimy9q-0000001d", "Hangup,XIVO_USERUUID: ad21dcd3-133d-422e-877d-3ae0a07add0a") in new stack
[Sep 29 22:15:34] -- Executing [userevent@hangup_handlers:3] Return("SIP/rkaimy9q-0000001d", "") in new stack
[Sep 29 22:15:34] == Spawn extension (outcall, redial, 4) exited non-zero on 'SIP/rkaimy9q-0000001d'
[Sep 29 22:15:34] -- SIP/rkaimy9q-0000001d Internal Gosub(hangup_handlers,userevent,1) complete GOSUB_RETVAL=
[Sep 29 22:15:41] == Using SIP RTP TOS bits 104
[Sep 29 22:15:41] == Using SIP RTP CoS mark 5
[Sep 29 22:15:42] -- Executing [s@default:1] NoOp("SIP/192.168.1.20-0000001e", "") in new stack
[Sep 29 22:15:42] -- Executing [s@default:2] GotoIf("SIP/192.168.1.20-0000001e", "1?:not-sip") in new stack
[Sep 29 22:15:42] -- Executing [s@default:3] GotoIf("SIP/192.168.1.20-0000001e", "1?:error-loop") in new stack
[Sep 29 22:15:42] -- Executing [s@default:4] Set("SIP/192.168.1.20-0000001e", "XIVO_DID_NEXT_EXTEN=s") in new stack
[Sep 29 22:15:42] -- Executing [s@default:5] Set("SIP/192.168.1.20-0000001e", "XIVO_FROM_S=1") in new stack
[Sep 29 22:15:42] -- Executing [s@default:6] Goto("SIP/192.168.1.20-0000001e", "from-principal,s,1") in new stack
[Sep 29 22:15:42] -- Goto (from-principal,s,1)
[Sep 29 22:15:42] -- Executing [s@from-principal:1] NoOp("SIP/192.168.1.20-0000001e", "") in new stack
[Sep 29 22:15:42] -- Executing [s@from-principal:2] GotoIf("SIP/192.168.1.20-0000001e", "1?:not-sip") in new stack
[Sep 29 22:15:42] -- Executing [s@from-principal:3] GotoIf("SIP/192.168.1.20-0000001e", "0?:error-loop") in new stack
[Sep 29 22:15:42] -- Goto (from-principal,s,10)
[Sep 29 22:15:42] -- Executing [s@from-principal:10] NoOp("SIP/192.168.1.20-0000001e", "") in new stack
[Sep 29 22:15:42] -- Executing [s@from-principal:11] Log("SIP/192.168.1.20-0000001e", "ERROR, Dialplan loop detected. Got SIP header To: <sip:s@192.168.1.19:5260>") in new stack
[Sep 29 22:15:41] ERROR[6978][C-00000029]: Ext. s:11 @ from-principal: Dialplan loop detected. Got SIP header To: <sip:s@192.168.1.19:5260>
[Sep 29 22:15:42] -- Executing [s@from-principal:12] Hangup("SIP/192.168.1.20-0000001e", "") in new stack
[Sep 29 22:15:42] == Spawn extension (from-principal, s, 12) exited non-zero on 'SIP/192.168.1.20-0000001e'
Soit je m'y prend mal, soit y'a un bug quelque part... Sans compter les plantages inexpliqués d'asterisk qui survienne de temps en temps, j'espère que ça va pas me faire ça en prod sinon...