Diversion field in 4.0

132 views
Skip to first unread message

Alexander Mustafin

unread,
Jul 2, 2017, 2:03:03 PM7/2/17
to 2600hz-dev
Hello, guys. 

It's necessary for me to get the Diversion header for forwarded calls. I've set the cid_rules_honor_diversions option to true in system_config --> stepswitch document, but have no Diversion header yet. Probably, I have different opinion how it should works.

Could anyone give me a clue how it works, please?

Best regards,
Alexander Mustafin

kirill.sysoev

unread,
Jul 2, 2017, 3:20:45 PM7/2/17
to 2600hz-dev
Hi Alexander,

IMHO cid_rules_honor_diversion is a flag you can use to make outbound routing decision based on diversion field instead of cid (in case diversion field available in sip header)

To add diversion field for your tests you can setup call forwarding at user or create cell phone device 
AND switch Keep Caller ID option ON

After that you'll see diversion field in outgoing invite.

If you'll try to pass diversion from your trunkstore connection you probably need to use honor_diversions_by_cid_validation in case you control outbound CIDs

Regards,
Kirill 

воскресенье, 2 июля 2017 г., 21:03:03 UTC+3 пользователь Alexander Mustafin написал:

Alexander Mustafin

unread,
Jul 3, 2017, 2:46:32 AM7/3/17
to 2600hz-dev
Thank you, Kirill. 

Unfortunately, Keep caller ID option changes the From and Remote-Party-ID headers, and Diversion doesn't appear at all. Earlier, there was the 'should_add_diversion_header' option in callflow document, but now it seem to be disappeared from 4.X.
I don't need to make routing based on Diversion field, I just want to have the Diversion field :)


понедельник, 3 июля 2017 г., 0:20:45 UTC+5 пользователь kirill.sysoev написал:

kirill.sysoev

unread,
Jul 3, 2017, 6:54:02 AM7/3/17
to 2600hz-dev
Hi Alexander,

it is still over there, I believe you just should add it manually:

[root@kz531 ~]# grep should_add_diversion_header /opt/kazoo/*/*/*/*
/opt/kazoo/core/kazoo_config/src/kapps_config.erl:        ,{{<<"callflow">>, <<"should_add_diversion_header">>}
/opt/kazoo/core/kazoo_config/src/kapps_config.erl:         ,{<<"kazoo_endpoint">>, <<"should_add_diversion_header">>}
/opt/kazoo/core/kazoo_endpoint/src/kz_endpoint.erl:        andalso kapps_config:get_is_true(?CONFIG_CAT, <<"should_add_diversion_header">>, 'false'),
[root@kz531 ~]# grep should_add_diversion_header /opt/kazoo/*/*/*/*/*
/opt/kazoo/applications/crossbar/priv/api/descriptions.system_config.json:    "kazoo_endpoint.should_add_diversion_header": "kazoo_endpoint should add diversion header",
/opt/kazoo/applications/crossbar/priv/api/swagger.json:                "should_add_diversion_header": {
/opt/kazoo/lib/crossbar-4.0.0/priv/api/descriptions.system_config.json:    "kazoo_endpoint.should_add_diversion_header": "kazoo_endpoint should add diversion header",
/opt/kazoo/lib/crossbar-4.0.0/priv/api/swagger.json:                "should_add_diversion_header": {
[root@kz531 ~]# 

Regards,
Kirill


понедельник, 3 июля 2017 г., 9:46:32 UTC+3 пользователь Alexander Mustafin написал:
Reply all
Reply to author
Forward
0 new messages