Thanks Michael I did exactly that, an "info" application is executied right ater the bride and the variable is not there. I also tried firing an event when B-leg ends and none of the headers showed the contents of the Reason Header. Regards Javi
---------- Forwarded message ---------- From: Michael Collins <msc@freeswitch.org> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Cc: Date: Thu, 31 May 2012 11:16:46 -0700 Subject: Re: [Freeswitch-users] Access to Cause filed in Reason header I believe that information is available in other channel variables. I'd do an info dump right after the bridge and see what shakes out. -MC
On Thu, May 31, 2012 at 8:51 AM, Javier Gallart <jgallartm@gmail.com>wrote:
Hello list
some of our providers include a Reason header in negative replies to an INVITE. For instance, they might include a cause=65 inside a Sip 503 reply. We need to react upon some of those ISDN causes: in this particular case with if Reason header were absent we would simply do nothing but let FS to send the response upstream; but if cause=65 in present we want to resend the call to the same provider with a different set of offered codecs. Is there any way to access to the content of that header?. Our applicatiion listens to the event socket in inbound mode but I haven't found a way to do this. Any help would be appreciated.
Regards
Javi