[Freeswitch-dev] Calls are hanging in State CS_REPORTING when processing call via mod_event_socket

mbo mbodbg at gmx.net
Thu Mar 17 20:37:34 MSK 2011

After an upgrade to the latest freeswitch version (FreeSWITCH Version 1.0.head (git-9c40e8e 2011-03-16 20-50-32 -0500)) we have a problem that sessions are not properly  closed after a call. To reproduce the error we can use the following dialplan:

 <extension name="socket">
     <condition field="destination_number" expression="^(\d{5,20})$">
        <action application="set" data="transfer_ringback=%(1000, 4000, 425.0, 425.0)" />
        <action application="set" data="ringback=%(1000, 4000, 425.0, 425.0)" />
        <action application="set" data="continue_on_fail=true" />
        <action application="set" data="ignore_early_media=true" />
        <action application="set" data="hangup_after_bridge=true" />
        <action application="set" data="anonymous_call=${privacy_hide_number}" />
        <action application="set" data="default_language=de" />
        <action application="socket" data=" async full" />
        <action application="log" data="DEBUG Back from Socket"/>

 To simulate the server we can use nc. We start it with nc –l –p 8025 and then initiate a test call. On the nc command line we then type the following commands:




call-command: execute
execute-app-name: answer

call-command: execute
execute-app-name: hangup


When we execute after the call „show channels“ on the freeswitch CLI, we can see that the channels are hanging in „CS_REPORTING STATE“:

66e3c608-50b9-11e0-adad-db99c44ff3d1,inbound,2011-03-17 18:10:04,1300381804,FreeTDM/1:1/02214006783109,CS_REPORTING,,22155400323,,02214006783109,socket, async full,XML,default,PCMA,8000,64000,PCMA,8000,64000,,VOXBACKCGN001,,,HANGUP,,,,
a6cc3aac-50b9-11e0-adaf-db99c44ff3d1,inbound,2011-03-17 18:11:51,1300381911,FreeTDM/1:3/02214006783109,CS_REPORTING,,22155400323,,02214006783109,hangup,,XML,default,PCMA,8000,64000,PCMA,8000,64000,,VOXBACKCGN001,,,HANGUP,,,,

If we do not send „myevents“ the channel is closed correctly after the hangup. We upgraded from FreeSWITCH Version 1.0.head (git-10d696e 2011-02-02 00-01-38 -0500), with this version we did not have that problem, the channel was closed correctly after the call.

Any help would be appreciated


More information about the FreeSWITCH-dev mailing list