Affichage des résultats 1 à 10 sur 37

Discussion: Remontée de fiche SugarCrm avec Asterisk

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre Association Avatar de quintana
    Date d'inscription
    août 2010
    Localisation
    Québec
    Messages
    1 084
    Downloads
    0
    Uploads
    0
    Ah oui il faut que tu upgrades, 13.10 devait avoir des soucis avec la réécriture des variables. On a fait un gros boulot depuis. Tu as juste a lancer xivo-upgrade. Par contre cela sera un peu long.
    Découvrez Wazo sous licence GPLv3 et accessible pour tous : http://www.wazo.community
    Blog Wazo : http://blog.wazo.community
    Wazo est un fork de XiVO.
    Suivez moi sur Twitter !

  2. #2
    Membre
    Date d'inscription
    juin 2011
    Localisation
    Houilles
    Messages
    46
    Downloads
    3
    Uploads
    0
    Je te remercie Sylvain, pour tes explications.

    En suivant ton tuto à la lettre avec les versions 13.25 de Xivo et 6.5.16 de sugar, la remonté de fiche marche parfaitement.

    Enfin une solution CTI très stable

  3. #3
    Membre Association Avatar de quintana
    Date d'inscription
    août 2010
    Localisation
    Québec
    Messages
    1 084
    Downloads
    0
    Uploads
    0
    Super , il y avait d'autre façon de faire aussi avec XiVO. C'est un peu la force de XiVO justement
    Bon ok je ne suis pas vraiment la bonne personne pour le dire, mais je le dit quand même !
    Hésites pas à partager ton expérience, ton tuto avec les captures d'écran est vraiment bien, si tu te sens de contribuer à faire un truc dans le wiki de XiVO ne te gène pas
    Découvrez Wazo sous licence GPLv3 et accessible pour tous : http://www.wazo.community
    Blog Wazo : http://blog.wazo.community
    Wazo est un fork de XiVO.
    Suivez moi sur Twitter !

  4. #4
    Membre
    Date d'inscription
    juin 2011
    Localisation
    Houilles
    Messages
    46
    Downloads
    3
    Uploads
    0
    Je le ferais car j'ai longtemps cherché à trouver une solution et je me focalisais trop sur le plug'in "YAAI" qui marchais aléatoirement.

  5. #5
    Membre
    Date d'inscription
    juin 2011
    Localisation
    Houilles
    Messages
    46
    Downloads
    3
    Uploads
    0
    Bonjour Sylvain,

    Je suis de retour :-) Bizarrement cela à fonctionné sur la machine de test mais pas sur la prod...
    J'ai l'impression que quand il connait le numéro l'appel n'aboutit pas (message d’indisponibilité) et quand le numéro n'est pas renseigné l'appel arrive bien et la fiche remonte vierge.

    Si ça te parle + rapidement que moi, j'aimerais bien comprendre d'ou ça vient

    voici la trace CLI d'un appel connu dans le CRM mais d'ou l'appel n'a pas aboutit (aucun des postes n'a sonné)

    Désolé de t’embêter avec ça, mais je comprend pas ce phénomène...

    [Jan 20 17:46:52] -- Executing [097223XXXX@from-extern:1] Set("SIP/trunk_ovh-000000f2", "XIVO_BASE_CONTEXT=from-extern") in new stack
    [Jan 20 17:46:52] -- Executing [097223XXXX@from-extern:2] Set("SIP/trunk_ovh-000000f2", "XIVO_BASE_EXTEN=097223XXXX") in new stack
    [Jan 20 17:46:52] -- Executing [097223XXXX@from-extern:3] Gosub("SIP/trunk_ovh-000000f2", "did,s,1(3,)") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:1] Set("SIP/trunk_ovh-000000f2", "XIVO_DSTNUM=097223XXXX") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:2] Set("SIP/trunk_ovh-000000f2", "XIVO_CONTEXT=from-extern") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:3] Set("SIP/trunk_ovh-000000f2", "XIVO_PRESUBR_GLOBAL_NAME=DID") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:4] Set("SIP/trunk_ovh-000000f2", "XIVO_INCALL_ID=3") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:5] Set("SIP/trunk_ovh-000000f2", "__XIVO_CALLORIGIN=extern") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:6] AGI("SIP/trunk_ovh-000000f2", "agi://127.0.0.1/callerid_extend") in new stack
    [Jan 20 17:46:52] agi://127.0.0.1/callerid_extend: AGI handler 'callerid_extend' successfully executed
    [Jan 20 17:46:52] -- <SIP/trunk_ovh-000000f2>AGI Script agi://127.0.0.1/callerid_extend completed, returning 0
    [Jan 20 17:46:52] -- Executing [s@did:7] AGI("SIP/trunk_ovh-000000f2", "agi://127.0.0.1/in_callerid") in new stack
    [Jan 20 17:46:52] agi://127.0.0.1/in_callerid: AGI handler 'in_callerid' successfully executed
    [Jan 20 17:46:52] -- <SIP/trunk_ovh-000000f2>AGI Script agi://127.0.0.1/in_callerid completed, returning 0
    [Jan 20 17:46:52] -- Executing [s@did:8] AGI("SIP/trunk_ovh-000000f2", "agi://127.0.0.1/callerid_forphones") in new stack
    [Jan 20 17:46:52] agi://127.0.0.1/callerid_forphones: AGI handler 'callerid_forphones' successfully executed
    [Jan 20 17:46:52] -- <SIP/trunk_ovh-000000f2>AGI Script agi://127.0.0.1/callerid_forphones completed, returning 0
    [Jan 20 17:46:52] -- Executing [s@did:9] UserEvent("SIP/trunk_ovh-000000f2", "ReverseLookup,CHANNEL: SIP/trunk_ovh-000000f2,") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:10] Set("SIP/trunk_ovh-000000f2", "XIVO_SRCNUM=095155XXXX") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:11] Gosub("SIP/trunk_ovh-000000f2", "xivo-did_rights_check,s,1") in new stack
    [Jan 20 17:46:52] -- Executing [s@xivo-did_rights_check:1] AGI("SIP/trunk_ovh-000000f2", "agi://127.0.0.1/did_set_call_rights") in new stack
    [Jan 20 17:46:52] agi://127.0.0.1/did_set_call_rights: AGI handler 'did_set_call_rights' successfully executed
    [Jan 20 17:46:52] -- <SIP/trunk_ovh-000000f2>AGI Script agi://127.0.0.1/did_set_call_rights completed, returning 0
    [Jan 20 17:46:52] -- Executing [s@xivo-did_rights_check:2] GotoIf("SIP/trunk_ovh-000000f2", "ALLOW?:error,1") in new stack
    [Jan 20 17:46:52] -- Executing [s@xivo-did_rights_check:3] GotoIf("SIP/trunk_ovh-000000f2", "1?allow,1") in new stack
    [Jan 20 17:46:52] -- Goto (xivo-did_rights_check,allow,1)
    [Jan 20 17:46:52] -- Executing [allow@xivo-did_rights_check:1] NoOp("SIP/trunk_ovh-000000f2", "Caller allowed to make call") in new stack
    [Jan 20 17:46:52] -- Executing [allow@xivo-did_rights_check:2] Return("SIP/trunk_ovh-000000f2", "") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:12] AGI("SIP/trunk_ovh-000000f2", "agi://127.0.0.1/incoming_did_set_features") in new stack
    [Jan 20 17:46:52] agi://127.0.0.1/incoming_did_set_features: AGI handler 'incoming_did_set_features' successfully executed
    [Jan 20 17:46:52] -- <SIP/trunk_ovh-000000f2>AGI Script agi://127.0.0.1/incoming_did_set_features completed, returning 0
    [Jan 20 17:46:52] -- Executing [s@did:13] UserEvent("SIP/trunk_ovh-000000f2", "Did,XIVO_SRCNUM: 095155XXXX,XIVO_SRCNAME: ,XIVO_EXTENPATTERN: 097223XXXX,CHANNEL: SIP/trunk_ovh-000000f2,XIVO_SRCTON: 0,XIVO_SRCRDNIS: ") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:14] AGI("SIP/trunk_ovh-000000f2", "agi://127.0.0.1/check_schedule") in new stack
    [Jan 20 17:46:52] agi://127.0.0.1/check_schedule: AGI handler 'check_schedule' successfully executed
    [Jan 20 17:46:52] -- <SIP/trunk_ovh-000000f2>AGI Script agi://127.0.0.1/check_schedule completed, returning 0
    [Jan 20 17:46:52] -- Executing [s@did:15] GotoIf("SIP/trunk_ovh-000000f2", "0?CLOSED,1") in new stack
    [Jan 20 17:46:52] -- Executing [s@did:16] Gosub("SIP/trunk_ovh-000000f2", "xivo-subroutine,s,1(sub-sugarcrm)") in new stack
    [Jan 20 17:46:52] -- Executing [s@xivo-subroutine:1] GotoIf("SIP/trunk_ovh-000000f2", "sub-sugarcrm?:nosubroutine") in new stack
    [Jan 20 17:46:52] -- Executing [s@xivo-subroutine:2] GotoIf("SIP/trunk_ovh-000000f2", "1?:nosubroutine") in new stack
    [Jan 20 17:46:52] -- Executing [s@xivo-subroutine:3] Gosub("SIP/trunk_ovh-000000f2", "sub-sugarcrm,s,1") in new stack
    [Jan 20 17:46:52] -- Executing [s@sub-sugarcrm:1] NoOp("SIP/trunk_ovh-000000f2", ""Get information from SUGARCRM"") in new stack
    [Jan 20 17:46:52] -- Executing [s@sub-sugarcrm:2] Set("SIP/trunk_ovh-000000f2", "SUGARCRM_URL=http://crm.XXXX.com/service/v4_1/rest.php") in new stack
    [Jan 20 17:46:52] -- Executing [s@sub-sugarcrm:3] Set("SIP/trunk_ovh-000000f2", "SUGARCRM_USERNAME=XXXX") in new stack
    [Jan 20 17:46:52] -- Executing [s@sub-sugarcrm:4] Set("SIP/trunk_ovh-000000f2", "SUGARCRM_PASSWD=XXXX") in new stack
    [Jan 20 17:46:52] -- Executing [s@sub-sugarcrm:5] AGI("SIP/trunk_ovh-000000f2", "xivo-sugarcrm/for_xivo") in new stack
    [Jan 20 17:46:52] -- Launched AGI Script /usr/share/asterisk/agi-bin/xivo-sugarcrm/for_xivo
    [Jan 20 17:46:52] xivo-sugarcrm/for_xivo: Trying to connect http://crm.XXXX.com/service/v4_1/rest.php with Asterisk : XXXX
    [Jan 20 17:46:57] xivo-sugarcrm/for_xivo: CONTACT : Damien Soulages
    [Jan 20 17:46:57] -- <SIP/trunk_ovh-000000f2>AGI Script xivo-sugarcrm/for_xivo completed, returning 4
    [Jan 20 17:46:57] == Spawn extension (sub-sugarcrm, s, 5) exited non-zero on 'SIP/trunk_ovh-000000f2'

  6. #6
    Membre
    Date d'inscription
    juin 2011
    Localisation
    Houilles
    Messages
    46
    Downloads
    3
    Uploads
    0
    Le problème provient du serveur CRM en lui même et non de xivo, car quand je met mon crm de test, l'appel arrive sans problème qu'il soit reconnu ou non dans les fiches contact.
    Mais avec le crm de prod, si la fiche est reconnu l'appel n'aboutit pas.
    Pour le moment la seul différence que je vois c'est que mon crm de test à une URL de type http://37.187.XX.XXX et celui en prod c'est du style : http://crm.airXXXX.com/

  7. #7
    Membre
    Date d'inscription
    juin 2011
    Localisation
    Houilles
    Messages
    46
    Downloads
    3
    Uploads
    0
    Je continu de chercher...
    Ce n'est pas un probleme d'URL

    La différence dans les log (CLI) que j'obtien est :

    OK:
    [Jan 21 07:20:18] xivo-sugarcrm/for_xivo: CONTACT : dams Sales
    [Jan 21 07:20:18] -- <SIP/trunk_ovh-0000012d>AGI Script xivo-sugarcrm/for_xivo completed, returning 0
    [Jan 21 07:20:18] -- Executing [s@sub-sugarcrm:6] UserEvent("SIP/trunk_ovh-0000012d", "dialplan2cti,UNIQUEID: 1390285216.301,CHANNEL: SIP/trunk_ovh-0000012d,VARIABLE: sugarcrm-firstname,VALUE: ") in new stack
    [Jan 21 07:20:18] -- Executing [s@sub-sugarcrm:7] UserEvent("SIP/trunk_ovh-0000012d", "dialplan2cti,UNIQUEID: 1390285216.301,CHANNEL: SIP/trunk_ovh-0000012d,VARIABLE: sugarcrm-lastname,VALUE: dams Sales") in new stack
    [Jan 21 07:20:18] -- Executing [s@sub-sugarcrm:8] UserEvent("SIP/trunk_ovh-0000012d", "dialplan2cti,UNIQUEID: 1390285216.301,CHANNEL: SIP/trunk_ovh-0000012d,VARIABLE: sugarcrm-id,VALUE: 38e00d3c-0b0f-2788-a10d-52d024c154bf") in new stack

    NOK
    [Jan 21 07:24:41] xivo-sugarcrm/for_xivo: CONTACT : Damien Soulages
    [Jan 21 07:24:42] -- <SIP/trunk_ovh-00000133>AGI Script xivo-sugarcrm/for_xivo completed, returning 4
    [Jan 21 07:24:42] == Spawn extension (sub-sugarcrm, s, 5) exited non-zero on 'SIP/trunk_ovh-00000133'
    [Jan 21 07:24:43] == Using SIP RTP CoS mark 5
    [Jan 21 07:24:43] -- Executing [097223XXXX@from-extern:1] Set("SIP/trunk_ovh-00000134", "XIVO_BASE_CONTEXT=from-extern") in new stack
    [Jan 21 07:24:43] -- Executing [097223XXXX@from-extern:2] Set("SIP/trunk_ovh-00000134", "XIVO_BASE_EXTEN=097223XXXX") in new stack
    [Jan 21 07:24:43] -- Executing [097223XXXX@from-extern:3] Gosub("SIP/trunk_ovh-00000134", "did,s,1(3,)") in new stack

    ...

Les tags pour cette discussion

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •