[Freeswitch-users] 300 message without Diversion header

Brian West brian at freeswitch.org
Thu May 26 23:54:52 MSD 2011


Check your variables. via uuid_dump/info

/b

On May 26, 2011, at 2:42 PM, Tihomir Culjaga wrote:

> 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.
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list