J'ai essayé en ajoutant une interconnexion avec le context entrant, ça le prend bien en compte, mais j'ai toujours l'erreur Dialplan loop detected. Sur le tuto xivo que j'ai il n'y a que l'interconnexion pour les appels sortants qui est présente. Et apparemment ça fonctionne bien.
Après c'est peut-être dû à ma tentative de simulation. Pour le xivo public j'ai créer un user sur lequel j'enregistre l'autre xivo (avec le numéro en SDA), et un autre pour mon téléphone. Et je fais un simple appel interne sur le xivo public. C'est peut-être là que ça coince ? Et pour réceptionner l'appel j'ai un compte interne sur le xivo normal enregistré sur mon PC.
Un appel entre les 2 numéros si je m’enregistre directement sur le xivo public fonctionne bien.
Code:
[Oct 2 00:52:11] -- Executing [s@from-principal:1] NoOp("SIP/principal-ent-00000036", "") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:2] GotoIf("SIP/principal-ent-00000036", "1?:not-sip") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:3] GotoIf("SIP/principal-ent-00000036", "1?:error-loop") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:4] Set("SIP/principal-ent-00000036", "XIVO_DID_NEXT_EXTEN=s") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:5] Set("SIP/principal-ent-00000036", "XIVO_FROM_S=1") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:6] Goto("SIP/principal-ent-00000036", "from-principal,s,1") in new stack
[Oct 2 00:52:11] -- Goto (from-principal,s,1)
[Oct 2 00:52:11] -- Executing [s@from-principal:1] NoOp("SIP/principal-ent-00000036", "") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:2] GotoIf("SIP/principal-ent-00000036", "1?:not-sip") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:3] GotoIf("SIP/principal-ent-00000036", "0?:error-loop") in new stack
[Oct 2 00:52:11] -- Goto (from-principal,s,10)
[Oct 2 00:52:11] -- Executing [s@from-principal:10] NoOp("SIP/principal-ent-00000036", "") in new stack
[Oct 2 00:52:11] -- Executing [s@from-principal:11] Log("SIP/principal-ent-00000036", "ERROR, Dialplan loop detected. Got SIP header To: <sip:s@192.168.1.19:5260>") in new stack
[Oct 2 00:52:11] ERROR[31994][C-00000023]: Ext. s:11 @ from-principal: Dialplan loop detected. Got SIP header To: <sip:s@192.168.1.19:5260>
[Oct 2 00:52:11] -- Executing [s@from-principal:12] Hangup("SIP/principal-ent-00000036", "") in new stack