[Freeswitch-users] Random [CRIT] sofia_glue.c:1031 Error creating HANDLE! when using att_xfer

Vallimamod Abdullah vma at vallimamod.org
Thu Apr 6 18:48:29 MSD 2017


Hi,

To my understanding, the BNF grammar in rfc3261 says that % must be followed by hex digits (https://tools.ietf.org/html/rfc3261#section-25.1):

SIP-URI          =  "sip:" [ userinfo ] hostport
                    uri-parameters [ headers ]
userinfo         =  ( user / telephone-subscriber ) [ ":" password ] "@"
user             =  1*( unreserved / escaped / user-unreserved )
user-unreserved  =  "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
unreserved       =  alphanum / mark
mark             =  "-" / "_" / "." / "!" / "~" / "*" / "'" / "(" / ")"
escaped          =  "%" HEXDIG HEXDIG

The issue here is that the '%pi' in the uri is not a valid encoded hex representation.

Best Regards,
-- 
Vallimamod Abdullah
SIP Solutions
vma at sipsolutions.fr
.

> On 6 Apr 2017, at 15:45, Brian West <brian at freeswitch.org> wrote:
> 
> It very well could be the %, I can't find the reference that I looked up long ago about this.  Try removing it and see. 
> 
> On Thu, Apr 6, 2017 at 8:10 AM, Brian West <brian at freeswitch.org> wrote:
> That actually should be valid there, Since even when encoded values are injected they still contain percent signs.
> 
> /b
> 
> On Thu, Apr 6, 2017 at 8:04 AM, Vallimamod Abdullah <vma at vallimamod.org> wrote:
> Hi,
> 
> The reason for the error is that your From uri (sip:106%piromax.pbx.isimples.com.br at 10.50.0.1) is invalid. The '%' character is used for escaping, so it must itsef be escaped (url encoded) as '%25'.
> 
> Aside from that, you should IMHO, investigate why you receive it at first.
> 
> Best regards,
> --
> Vallimamod Abdullah
> SIP Solutions
> vma at sipsolutions.fr
> .
> 
> > On 6 Apr 2017, at 14:46, Antonio Modesto <modesto916 at gmail.com> wrote:
> >
> > Hello guys,
> >
> > I tried to increase sofia debug level to 9 but it gave me nothing useful:
> >
> > nua_common.c:108 nh_create_handle() nua: nh_create_handle: entering
> > nua_common.c:122 nh_create_handle() nua(0x7f8018014150): creating handle 0x7f8015287660 failed
> > 2017-04-06 09:23:17.300587 [CRIT] sofia_glue.c:1031 Error creating HANDLE!
> > url_str=[sip:102 at 10.100.128.102:5060]
> > call_id=[N/A]
> > to_str=[<sip:102 at 10.100.128.102:5060>]
> > from_str=["Outbound Call" <sip:106%piromax.pbx.isimples.com.br at 10.50.0.1>]
> > invite_contact=[<sip:mod_sofia at 10.50.0.1:5060>]
> > 2017-04-06 09:23:17.300587 [NOTICE] mod_sofia.c:117 Hangup sofia/internal/102 [CS_INIT] [DESTINATION_OUT_OF_ORDER]
> >
> > Talking to my client I managed to get some more context. This always happens when the person tries to transfer the same call for the second time. For example:
> >
> >
> > 1) LEG A (PSTN) Calls LEG B (Bob)
> > 2) Bob answers the call and tries to transfer the call to Sally
> > 3) Sally answers Bob and tell him to talk to Alice and hangs up the call
> > 4) Bob is now talking again to PSTN
> > 5) Bob tries to transfer the call to Alice, the transfer returns immediately and the error above pops on the console
> >
> > Here is the output of info before calling att_xfer:
> >
> > https://pastebin.com/CzhMEPbB
> >
> >
> >
> >
> >
> >
> >
> > 2017-04-06 1:33 GMT-03:00 Brian West <brian at freeswitch.org>:
> > This issue has zero to do with file handles, its the NUA handle in Sofia.
> >
> > /b
> >
> >
> > On Wed, Apr 5, 2017 at 11:02 PM, Sergey Safarov <s.safarov at gmail.com> wrote:
> > Check how many file handler allowed to create process. Default value is 1024.
> > If this take place,  please create jira for fix
> >
> >
> > ср, 5 апр. 2017, 22:52 Michael Jerris <mike at jerris.com>:
> > Are you forcing one of those values with a var?
> >
> > sofia loglevel all 9 may help show which one it doesn’t like, but one of those vars printed is the wrong format.
> >
> >> On Apr 5, 2017, at 2:36 PM, Antonio Modesto <modesto916 at gmail.com> wrote:
> >>
> >> Hi folks,
> >>
> >> Some of my customers are complaining that sometimes when they are going to transfer a call, it drops. I noticed that when this happens, freeswitch reports the following in the console/logfile:
> >>
> >>
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 2017-04-04 12:58:13.900620 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/angela [aed6d1eb-c1fe-496f-b520-150ae
> >> 23918a6]
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 2017-04-04 12:58:13.900620 [CRIT] sofia_glue.c:1031 Error creating HANDLE!
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 url_str=[sip:angela at 10.100.161.3:5060;transport=udp]
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 call_id=[N/A]
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 to_str=[<sip:angela at 10.100.161.3:5060;transport=udp>]
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 from_str=["Outbound Call" <sip:keneja%sabia.pbx.isimples.com.br at 10.50.0.1>]
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 invite_contact=[<sip:mod_sofia at 10.50.0.1:5060>]
> >> aed6d1eb-c1fe-496f-b520-150ae23918a6 2017-04-04 12:58:13.900620 [NOTICE] mod_sofia.c:117 Hangup sofia/internal/angela [CS_INIT] [DESTINATION_OUT_OF_ORDER]
> >>
> >>
> >> Do you guys know what can be causing this?
> >>
> >> Thanks.
> >>
> >>
> >> --
> >> Atenciosamente,
> >>
> >> Antônio Modesto
> >> _________________________________________________________________________
> >> Professional FreeSWITCH Consulting Services:
> >> consulting at freeswitch.org
> >> http://www.freeswitchsolutions.com
> >>
> >> Official FreeSWITCH Sites
> >> http://www.freeswitch.org
> >> http://confluence.freeswitch.org
> >> http://www.cluecon.com
> >>
> >> 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
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > 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
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > 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
> >
> >
> >
> > --
> > Brian West
> > brian at freeswitch.org
> >
> > Twitter: @FreeSWITCH , @briankwest
> >
> > http://www.freeswitchbook.com
> > http://www.freeswitchcookbook.com
> >
> > Allison prompts for FreeSWITCH:
> >
> > https://www.gofundme.com/allison-prompts-for-freeswitch
> >
> > Got Bugs? Report them here! | Reddit: /r/freeswitch
> >
> > T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
> > Skype:briankwest
> >
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > 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
> >
> >
> >
> > --
> > Atenciosamente,
> >
> > Antônio Modesto
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > 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
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> 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
> 
> 
> 
> -- 
> Brian West
> brian at freeswitch.org
> 
> Twitter: @FreeSWITCH , @briankwest
> 
> http://www.freeswitchbook.com 
> http://www.freeswitchcookbook.com
> 
> Allison prompts for FreeSWITCH:
> 
> https://www.gofundme.com/allison-prompts-for-freeswitch
> 
> Got Bugs? Report them here! | Reddit: /r/freeswitch
> 
> T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
> Skype:briankwest
> 
> 
> 
> 
> -- 
> Brian West
> brian at freeswitch.org
> 
> Twitter: @FreeSWITCH , @briankwest
> 
> http://www.freeswitchbook.com 
> http://www.freeswitchcookbook.com
> 
> Allison prompts for FreeSWITCH:
> 
> https://www.gofundme.com/allison-prompts-for-freeswitch
> 
> Got Bugs? Report them here! | Reddit: /r/freeswitch
> 
> T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
> Skype:briankwest
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> 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




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list