Hi,
I am using ARI to connect calls by putting them into bridge, this is how I connect them:
- Call initiates with Caller A
- Create Bridge and add A to Bridge
- Create outgoing channel for B
- Add Channel B to Bridge
- Dial channel B
- When B picks up (I use Ari Dial Event to detect it) answer A and B
Everything works as intended my question is Asterisk is sending same ChannelVarset event for both channels too many times e.g.
I get the following event around 15+ in a burst with Timestamp difference only after the channel has entered the bridge.
<— Sending ARI event to 127.0.0.1 —>
{
“variable”: “BRIDGEPEER”,
“value”: “PJSIP/sip-proxy”,
“type”: “ChannelVarset”,
“timestamp”: “2018-07-11T12:10:07.979+0000”,
“channel”: {
“id”: “1531310980.283”,
“name”: “PJSIP/sip-gateway”,
“state”: “Up”,
“caller”: {
“name”: “”,
“number”: “”
},
“connected”: {
“name”: “”,
“number”: “*"
},
“accountcode”: “”,
“dialplan”: {
“context”: “forbidden”,
“exten”: “s”,
“priority”: 1
},
“creationtime”: “2018-07-11T12:09:40.846+0000”,
“language”: “en”
},
“asterisk_id”: “”,
“application”: “testapp”
}
<— Sending ARI event to 127.0.0.1 —>
{
“variable”: “BRIDGEPEER”,
“value”: “PJSIP/sip-proxy”,
“type”: “ChannelVarset”,
“timestamp”: “2018-07-11T12:10:08.019+0000”,
“channel”: {
“id”: “1531310980.283”,
“name”: “PJSIP/sip-gateway”,
“state”: “Up”,
“caller”: {
“name”: “”,
“number”: “”
},
“connected”: {
“name”: “”,
“number”: "”
},
“accountcode”: “”,
“dialplan”: {
“context”: “forbidden”,
“exten”: “s”,
“priority”: 1
},
“creationtime”: “2018-07-11T12:09:40.846+0000”,
“language”: “en”
},
“asterisk_id”: “”,
“application”: “testapp”
}
Can anyone explain why asterisk needs to set BRIDGEPEER variable on the channel so many times in such a short time span ?
Note: The variable “BRIDGEPVTCALLID” has the same behavior as well
-Adnan