Freeswitch crasing while calling astpp-fs-xml.cgi with loopback endpoint

195 views
Skip to first unread message

mohammed shafeeque

unread,
Oct 22, 2013, 3:03:45 PM10/22/13
to as...@googlegroups.com
Dear All

i was trying to call the astpp-fs-xml.cgi script with loopback endpoint which resulted in crashing of freeswitch.

I tried to call the scipt from freeswitch cli with the command originate loopback/919895999999 1000 and i created a dialplan for 919895999999 to pass it to the astpp-fs-xml.cgi script

  <extension name="astpp_callingcards1">
    <condition field="destination_number" expression="^919895999999$">
      <action application="eval" data="astpp script"/>
        <action application="set" data="accountcode=2142324450"/>
      <action application="perl" data="/var/www/cgi-bin/astpp/astpp-fs-xml.cgi" />
    </condition>
  </extension>
The accountcode=2142324450 is a valid account created in astpp.

Please let me know if any one have a solution for my issue

Thanks in advance


mohammed shafeeque

unread,
Oct 24, 2013, 9:39:53 AM10/24/13
to as...@googlegroups.com
Hello all, 

can anyone suggest a solution for this or any alternatives to do this

Fernando

unread,
Oct 24, 2013, 10:54:47 AM10/24/13
to as...@googlegroups.com
Hi.

I think you must post the freeswitch log.

Regards.

mohammed shafeeque

unread,
Oct 24, 2013, 11:39:06 AM10/24/13
to as...@googlegroups.com
Dear Fernando

Thanks for your reply

There is nothing more from the log, its trying to execute the script and then freeswitch sends "Socket interrupted, bye!" message

Here is the log


Dialplan: loopback/919895999999-b Regex (PASS) [astpp_callingcards1] destination_number(919895999999) =~ /^919895999999$/ break=on-false
Dialplan: loopback/919895999999-b Action eval(astpp script)
Dialplan: loopback/919895999999-b Action set(accountcode=2142324450)
Dialplan: loopback/919895999999-b Action perl(/var/www/cgi-bin/astpp/astpp-fs-xml.cgi)
2013-10-24 09:12:38.072345 [DEBUG] switch_core_state_machine.c:167 (loopback/919895999999-b) State Change CS_ROUTING -> CS_EXECUTE
2013-10-24 09:12:38.072345 [DEBUG] switch_core_session.c:1338 Send signal loopback/919895999999-b [BREAK]
2013-10-24 09:12:38.072345 [DEBUG] mod_loopback.c:592 loopback/919895999999-b CHANNEL KILL
2013-10-24 09:12:38.072345 [DEBUG] switch_core_state_machine.c:470 (loopback/919895999999-b) State ROUTING going to sleep
2013-10-24 09:12:38.072345 [DEBUG] switch_core_state_machine.c:415 (loopback/919895999999-b) Running State Change CS_EXECUTE
2013-10-24 09:12:38.072345 [DEBUG] switch_core_state_machine.c:477 (loopback/919895999999-b) State EXECUTE
2013-10-24 09:12:38.072345 [DEBUG] mod_loopback.c:431 loopback/919895999999-b CHANNEL EXECUTE
2013-10-24 09:12:38.072345 [DEBUG] switch_core_state_machine.c:209 loopback/919895999999-b Standard EXECUTE
EXECUTE loopback/919895999999-b set(open=true)
2013-10-24 09:12:38.072345 [DEBUG] mod_dptools.c:1402 loopback/919895999999-b SET [open]=[true]
EXECUTE loopback/919895999999-b eval(astpp script)
EXECUTE loopback/919895999999-b set(accountcode=2142324450)
2013-10-24 09:12:38.072345 [DEBUG] mod_dptools.c:1402 loopback/919895999999-b SET [accountcode]=[2142324450]
EXECUTE loopback/919895999999-b perl(/var/www/cgi-bin/astpp/astpp-fs-xml.cgi)
Socket interrupted, bye!

Fernando

unread,
Oct 24, 2013, 12:30:03 PM10/24/13
to as...@googlegroups.com
Check if the module loopback is available

fs_cli

load mod_loopback

And try again

mohammed shafeeque

unread,
Oct 24, 2013, 12:45:11 PM10/24/13
to as...@googlegroups.com
Hi, its available and loaded. The loopback is executing correctly and the issue comes when trying to execute the script. Do we need to send any arguments to the script astpp-fs-xml.cgi when executing from dialplan

Samir Doshi

unread,
Oct 29, 2013, 10:54:34 AM10/29/13
to as...@googlegroups.com
Hi,

You cannot call astpp-fs-xml.cgi from loopback, because this scripts are only compitible with xml_curl parameters.

So If you will try to execute it using loopback then that will crash your fs.

Thanks,
Samir Doshi
ASTPP - Open Source VoIP Billing Solution
--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/05be2e99-21ca-40f4-a041-9cc4fd255ade%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages