Hi @mc_ ,
Thank you for the support.
Unfortunately I still can't apply the diversion header
I applied on kazoo_endpoints (cf. below):
{
"_id": "kazoo_endpoint",
"_rev": "17-85c7845s62ca8b0dec9fed889ef5c6661",
"default": {
"should_add_diversion_header": "true",
"default_ignore_completed_elsewhere": true,
"restrict_to_known_types": false
}
}
+++++++++
Below information of the resources:
{
"_id": "ad9850e6484b13b3e54781a210dffbb2",
"_rev": "71-72b87146c01e1dd9547bf7f2b47e94133",
"pvt_type": "resource",
"name": "Carrier Test FR",
"enabled": true,
"flags": [
],
"weight_cost": 1,
"rules": [
"^\\+33\\d{9,}$"
],
"gateways": [
{
"server": "sip.xxxxx.com",
"username": "myusername",
"password": "mypassword",
"prefix": "",
"suffix": "",
"media": {
"fax_option": false
},
"codecs": [
"PCMA",
"PCMU",
"G729"
],
"enabled": true
}
],
"grace_period": 5,
"formatters": {
"request": [
{
"regex": "^(\\d{9,})$",
"prefix": "+33",
"suffix": ""
}
],
"diversion": [
{
"match_invite_format": true,
"direction": "outbound"
}
]
}
}
According to the carrier, to use a third party number, I will need to add a diversion header in the INVITE that contains a Carrier DID enabled for outbound