PDA

Voir la version complète : Architecture distribuée



jackdesmo
17/09/2010, 12h55
Bonjour,

Je souhaite montée une architecture distribuée avec un asterisk (*VM1) qui s'occupe du dialplan et un autre asterisk (*VM2) qui s'occupe de la messagerie vocale, le SVI, et la gestion des Queues.

J'ai monté un trunk IAX entre les deux. Cela fonctionne parfaitement.
Les users sont enregistrés sur *VM1. j'ai copié le users.conf d'*vm1 sur *vm2.
Mon soucis est que lorsque jappelle ma queue, je transfere l'appel sur *vm2 pour le traitement de la queue, or les agents qui sont connectés à la queue ne reçoivent aucun appels. Sans doute parcequ'ils ne sont enregistrés uniquement sur *VM1 et non *VM2.
Comment pourrai-je faire pour que les users enregistrés sur *VM1 le soient également sur *VM2 ?

quintana
17/09/2010, 15h22
Tu peux nous donner des logs de CLI etc .. stp ?

jackdesmo
20/09/2010, 10h31
Ci-joint les logs de CLI sur *VM1 et *Vm2

*VM1 :
asteriskvm1*CLI>
-- Executing [*3728@3728:1] Dial("SIP/7904-000014e1", "IAX2/ASTERISKVM2/*3728") in new stack
-- Called ASTERISKVM2/*3728
-- Call accepted by 58.171.18.129 (format alaw)
-- Format for call is alaw
-- IAX2/ASTERISKVM2-16576 answered SIP/7904-000014e1
-- Hungup 'IAX2/ASTERISKVM2-16576'
== Spawn extension (3728, *3728, 1) exited non-zero on 'SIP/7904-000014e1'
asteriskvm1*CLI>

-- Executing [3728@National:1] Dial("SIP/7905-000014e2", "IAX2/ASTERISKVM2/3728") in new stack
-- Called ASTERISKVM2/3728
-- Call accepted by 58.171.18.129 (format alaw)
-- Format for call is alaw
-- IAX2/ASTERISKVM2-16764 answered SIP/7905-000014e2
-- Hungup 'IAX2/ASTERISKVM2-16764'
== Spawn extension (National, 3728, 1) exited non-zero on 'SIP/7905-000014e2'
asteriskvm1*CLI>

asteriskvm1*CLI> queue show csi
csi has 0 calls (max 5) in 'rrmemory' strategy (1s holdtime), W:0, C:1, A:7, SL:0.0% within 0s
Members:
IAX2/7912 (dynamic) (Unavailable) has taken no calls yet
IAX2/7914 (dynamic) (Unavailable) has taken no calls yet
IAX2/7915 (dynamic) (Unavailable) has taken no calls yet
SIP/7915 (dynamic) (Unavailable) has taken 25 calls (last was 4212087 secs ago)
No Callers

asteriskvm1*CLI>

Sur *VM2 :

asteriskvm2*CLI>
-- Accepting UNAUTHENTICATED call from 58.171.18.128:
> requested format = alaw,
> requested prefs = (alaw),
> actual format = alaw,
> host prefs = (alaw),
> priority = mine
-- Executing [*3728@FROM_ASTERISKVM1:1] Answer("IAX2/ASTERISKVM1-4122", "") in new stack
-- Executing [*3728@FROM_ASTERISKVM1:2] AddQueueMember("IAX2/ASTERISKVM1-4122", "csi|SIP/7904") in new stack
[Sep 20 11:05:59] NOTICE[7974]: app_queue.c:3887 aqm_exec: Added interface 'SIP/7904' to queue 'csi'
-- Executing [*3728@FROM_ASTERISKVM1:3] NoOp("IAX2/ASTERISKVM1-4122", "ADDED") in new stack
-- Executing [*3728@FROM_ASTERISKVM1:4] GotoIf("IAX2/ASTERISKVM1-4122", "1?letsgo:dommage") in new stack
-- Goto (FROM_ASTERISKVM1,*3728,5)
-- Executing [*3728@FROM_ASTERISKVM1:5] Playback("IAX2/ASTERISKVM1-4122", "agent-loginok") in new stack
-- <IAX2/ASTERISKVM1-4122> Playing 'agent-loginok' (language 'fr')
-- Executing [*3728@FROM_ASTERISKVM1:6] Hangup("IAX2/ASTERISKVM1-4122", "") in new stack
== Spawn extension (FROM_ASTERISKVM1, *3728, 6) exited non-zero on 'IAX2/ASTERISKVM1-4122'
-- Hungup 'IAX2/ASTERISKVM1-4122'
-- Accepting UNAUTHENTICATED call from 58.171.18.128:
> requested format = alaw,
> requested prefs = (alaw),
> actual format = alaw,
> host prefs = (alaw),
> priority = mine
-- Executing [3728@FROM_ASTERISKVM1:1] GotoIfTime("IAX2/ASTERISKVM1-12580", "08:00-17:00|mon-fri|*|*?openCSI|3728|1") in new stack
-- Goto (openCSI,3728,1)
-- Executing [3728@openCSI:1] Set("IAX2/ASTERISKVM1-12580", "LANGUAGE()=fr") in new stack
-- Executing [3728@openCSI:2] NoOp("IAX2/ASTERISKVM1-12580", "CSI ouvert") in new stack
-- Executing [3728@openCSI:3] Answer("IAX2/ASTERISKVM1-12580", "") in new stack
-- Executing [3728@openCSI:4] BackGround("IAX2/ASTERISKVM1-12580", "welcome") in new stack
-- <IAX2/ASTERISKVM1-12580> Playing 'welcome' (language 'fr')
-- Executing [3728@openCSI:5] BackGround("IAX2/ASTERISKVM1-12580", "messageCSI") in new stack
-- <IAX2/ASTERISKVM1-12580> Playing 'messageCSI' (language 'fr')
-- Executing [3728@openCSI:6] Queue("IAX2/ASTERISKVM1-12580", "csi|tT|||50") in new stack
[Sep 20 11:07:57] WARNING[7979]: res_musiconhold.c:666 get_mohbyname: Music on Hold class 'support' not found
-- Started music on hold, class 'default', on IAX2/ASTERISKVM1-12580
-- Stopped music on hold on IAX2/ASTERISKVM1-12580
== Spawn extension (openCSI, 3728, 6) exited non-zero on 'IAX2/ASTERISKVM1-12580'
-- Hungup 'IAX2/ASTERISKVM1-12580'
asteriskvm2*CLI>


asteriskvm2*CLI> queue show csi
csi has 0 calls (max 5) in 'rrmemory' strategy (0s holdtime), W:0, C:0, A:5, SL:0.0% within 0s
Members:
IAX2/7912 (dynamic) (Invalid) has taken no calls yet
SIP/7913 (dynamic) (Unavailable) has taken no calls yet
SIP/7914 (dynamic) (Unavailable) has taken no calls yet
SIP/7904 (dynamic) (Unavailable) has taken no calls yet
IAX2/7915 (dynamic) (Invalid) has taken no calls yet
No Callers

asteriskvm2*CLI>
asteriskvm2*CLI>

Reaper
20/09/2010, 17h20
Bonjour dans ce cas il faut soit enregistrer l'ensemble de l'agents sur VM2 avec la chaine du type IAX2/NuméroAgentVM1 pour que le serveur asterisk les contacte avec cette chaine.
Il faut savoir que IAX2/7912 marqué comme invalid pas pour rien, ton asterisk a tenté de contacté ton agent, mais sans succès pour une simple raison que il n exécute pas la dialplan, il faut ajouter le peername de l'interco et le numero agent, comme sir c'est un appel intersite.