C'est pas pressé
j'ai essayé de débugué.
asterisk -r
agi set debug on
core set verbose 4
Voila ce que j'ai (au moment ou ca plante) sur le CRM qui pose problème :
------------------------------------------------------------------------------------------------------------------------------------------------------------
[0K[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Rx << VERBOSE "CONTACT : Damien Soulages" 1
[Feb 11 19:40:17] xivo-sugarcrm/for_xivo: CONTACT : Damien Soulages
[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Tx >> 200 result=1
[0K[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Rx << SET VARIABLE "SUGARCRM-ID" "970a01ac-7ce0-45e4-9776-51c5de4b3e99"
[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Tx >> 200 result=1
[0K[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Rx << SET VARIABLE "SUGARCRM-FIRSTNAME" "Damien"
[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Tx >> 200 result=1
[0K[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Rx << SET VARIABLE "SUGARCRM-LASTNAME" "Soulages"
[Feb 11 19:40:17] <SIP/trunk_ovh-0000000a>AGI Tx >> 200 result=1
[0K[Feb 11 19:40:18] -- <SIP/trunk_ovh-0000000a>AGI Script xivo-sugarcrm/for_xivo completed, returning 4
[0K[Feb 11 19:40:18] == Spawn extension (sub-sugarcrm, s, 5) exited non-zero on 'SIP/trunk_ovh-0000000a'
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Et le même test avec le CRM qui fonctionne :
[0K[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Rx << VERBOSE "CONTACT : dams Sales" 1
[Feb 11 20:05:02] xivo-sugarcrm/for_xivo: CONTACT : dams Sales
[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Tx >> 200 result=1
[0K[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Rx << SET VARIABLE "SUGARCRM-ID" "38e00d3c-0b0f-2788-a10d-52d024c154bf"
[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Tx >> 200 result=1
[0K[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Rx << SET VARIABLE "SUGARCRM-FIRSTNAME" ""
[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Tx >> 200 result=1
[0K[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Rx << SET VARIABLE "SUGARCRM-LASTNAME" "dams Sales"
[Feb 11 20:05:02] <SIP/trunk_ovh-0000000d>AGI Tx >> 200 result=1
[0K[Feb 11 20:05:03] -- <SIP/trunk_ovh-0000000d>AGI Script xivo-sugarcrm/for_xivo completed, returning 0
[0K[Feb 11 20:05:03] -- Executing [s@sub-sugarcrm:6] [1;36mUserEvent[0m("[1;35mSIP/trunk_ovh-0000000d[0m", "[1;35mdialplan2cti,UNIQUEID: 1392145499.13,CHANNEL: SIP/trunk_ovh-0000000d,VARIABLE: sugarcrm-firstname,VALUE: [0m") in new stack
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
La seul différence que je voit est sur "SUGARCRM-FIRSTNAME" ...