Going through the asterisk log i found the party B had the correct accountcode —
"{
“variable”: “__TRANSFER_CONTEXT”,
“value”: “stanchart”,
“type”: “ChannelVarset”,
“timestamp”: “2016-12-11T12:06:33.431+0000”,
“channel”: {
“id”: “1481457993.18”,
“name”: “PJSIP/stanchart_market_1_1002-00000012”,
“state”: “Down”,
“caller”: {
“name”: “Khalid Bin Walid”,
“number”: “1002”
},
“connected”: {
“name”: “”,
“number”: “”
},
“accountcode”: “stanchart_market_1_1002”,
“dialplan”: {
“context”: “stanchart”,
“exten”: “s”,
“priority”: 1
},
“creationtime”: “2016-12-11T12:06:33.431+0000”,
“language”: “en”
},
“application”: “c3app”
}"
but in the next event the accountcode just changed ----
“{
“type”: “ChannelDialplan”,
“timestamp”: “2016-12-11T12:06:33.431+0000”,
“dialplan_app”: “AppDial”,
“dialplan_app_data”: “(Outgoing Line)”,
“channel”: {
“id”: “1481457993.18”,
“name”: “PJSIP/stanchart_market_1_1002-00000012”,
“state”: “Down”,
“caller”: {
“name”: “Khalid Bin Walid”,
“number”: “1002”
},
“connected”: {
“name”: “Line Number 1”,
“number”: “1001”
},
“accountcode”: “stanchart_market_1_1001”,
“dialplan”: {
“context”: “stanchart”,
“exten”: “extension_call”,
“priority”: 1
},
“creationtime”: “2016-12-11T12:06:33.431+0000”,
“language”: “en”
},
“application”: “c3app”
}”
why did just change from its correct accountcode to the party A’s accountcode!!