[Freeswitch-users] 300 message without Diversion header

Tihomir Culjaga tculjaga at gmail.com
Thu May 26 23:42:23 MSD 2011


hello,

i got a strange issue ... I'm using FS as a redirect server (route server)
and it does work fine ... except if the original INVITE contains a Diversion
header, the same header is lost in the responding 300 or 302 message.
Is this by design or its a bug ?


this is a part of the code in sofia where u construct redirect response
message...

                if (argc > 1) {
                    nua_respond(tech_pvt->nh, SIP_300_MULTIPLE_CHOICES,
SIPTAG_CONTACT_STR(dest),
                                TAG_IF(!zstr(extra_headers),
SIPTAG_HEADER_STR(extra_headers)), TAG_END());
                } else {
                    nua_respond(tech_pvt->nh, SIP_302_MOVED_TEMPORARILY,
SIPTAG_CONTACT_STR(dest),
                                TAG_IF(!zstr(extra_headers),
SIPTAG_HEADER_STR(extra_headers)), TAG_END());
                }


so, why the original diversion header is missing ? ... m'I missing something
?


also, should the 3000/302 message always contain a diversion field saying
the call is diverted ?


Thanks for your answer,
Tihomir.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110526/cfca0fed/attachment.html 


More information about the FreeSWITCH-users mailing list