if it gets a bye with a reason header it puts it in the sip_reason var, which since the call hangs up now is only accessible in the CDR stage.<br><br><div class="gmail_quote">On Sun, Sep 9, 2012 at 11:40 AM, Sias Mey <span dir="ltr"><<a href="mailto:sias@cpdata.co.za" target="_blank">sias@cpdata.co.za</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually Anthony your wiki and code are accurate .. the rfc maps the translations different depending on direction.<br>
<br>
Q.850 18 = sip 408<br>
sip 408 = Q.850 102<br>
<br>
sip 480 = Q.850 18<br>
<br>
Is there a way for me to access the reason header from the sip message?<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
From: "Steven Ayre" <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>><br>
To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
Sent: Sunday, 9 September, 2012 5:59:22 PM<br>
Subject: Re: [Freeswitch-users] Confusion about sip hangup cause Q850 hangup cause and long struggles with a provider.<br>
<br>
Shouldn't the presence of a Reason header in the 408 from the callee<br>
override the default rfc mapping though?<br>
<br>
-Steve<br>
<br>
<br>
<br>
On 8 September 2012 22:27, Anthony Minessale<br>
<<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
> I think our wiki is less accurate than our code: Our cause mappings are<br>
> straight from RFC 4497 <a href="http://tools.ietf.org/html/rfc4497" target="_blank">http://tools.ietf.org/html/rfc4497</a><br>
><br>
> Here is an excerpt:<br>
><br>
> 408 Request timeout 102 Recovery on timer expiry<br>
><br>
> 504 Gateway time-out 102 Recovery on timer expiry<br>
><br>
><br>
><br>
><br>
><br>
> On Fri, Sep 7, 2012 at 3:39 AM, Sias Mey <<a href="mailto:sias@cpdata.co.za">sias@cpdata.co.za</a>> wrote:<br>
>><br>
>> Hi, Im sure this subject has been beaten to death .. but many googles and<br>
>> many email searches hasent really managed to find me something.<br>
>><br>
>> Im a dev for a small company that writes call center software. Freeswitch<br>
>> was a godsend, thank you.<br>
>><br>
>> Now .. the confusion.<br>
>><br>
>> We are getting a lot of what seem to be strange hangup codes from a new<br>
>> provider big fights about loads of failled calls ensued blah blah.. much sip<br>
>> packet logging and manual inspection later.. I found the following.<br>
>><br>
>> from xmlcdr.<br>
>><br>
>><br>
>> <sip_hangup_disposition>recv_refuse</sip_hangup_disposition><br>
>> <sip_term_status>408</sip_term_status><br>
>> <proto_specific_hangup_cause>sip%3A408</proto_specific_hangup_cause><br>
>> <sip_term_cause>102</sip_term_cause><br>
>> <hangup_cause>RECOVERY_ON_TIMER_EXPIRE</hangup_cause><br>
>> <hangup_cause_q850>102</hangup_cause_q850><br>
>><br>
>> this just to show its the same call<br>
>> <sip_call_id>0d4d4e76-735a-1230-d2ac-000423b5571b</sip_call_id><br>
>><br>
>> and from the sip messages.<br>
>><br>
>> SIP/2.0 408 Request Timeout<br>
>> Call-ID: 0d4d4e76-735a-1230-d2ac-000423b5571b<br>
>> Reason: Q.850;cause=18;text="no user responding"<br>
>><br>
>> And according to the very useful wiki page on Q.850 codes 408 should = 18<br>
>> like it does in the providers response.<br>
>><br>
>> Why then is the q850 hangup cause in the CDR 102? and where does that<br>
>> translation come from.<br>
>><br>
>> This is a single example but I also have loads and loads where the CDR<br>
>> claims q850 code 18 but the sip messages provide 31 or a range of other<br>
>> codes.<br>
>> I can understand if the q850 code from the sip message is not being read<br>
>> by FS since FS has to be a bit more agnostic than that and in the pas I have<br>
>> almost exclusively worked with direct connections to TDM hardware so my<br>
>> knowledge and understanding of the sip messages is rather limited. But even<br>
>> in that case, shouldent the q850 code in the cdr at least conform to the<br>
>> translation from the wiki page?<br>
>><br>
>> Oh I am not currently running the latest git release, having some libtiff<br>
>> issues on ubuntu to compile. I will respond to this again if I manage that<br>
>> and it helps matters.<br>
>><br>
>> Thank you for your time and help,<br>
>> Regards<br>
>> Sias<br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> pstn:<a href="tel:%2B19193869900" value="+19193869900">+19193869900</a><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>