switch_ivr_originate.c:2044 Parse Error!

Moderator: areski

switch_ivr_originate.c:2044 Parse Error!

Postby aynema » Tue Apr 09, 2013 7:49 am

I'm in the process of Setting up a newfies-Dialer System for a client of mine & I've setup a basic Campaign as per the Quick-Install guide but I'm having a problem with the calls.

Basically I set my own number in the system & setup a separate Elastix Phone system so I could do some outgoing volume testing & initially it did work talking to my mobile via our test SIP Account [sip.simtex.com.au] but I went to test again talking to extentions on the Elastix Server [Dialer 192.168.60.100] and now if I try to run a camaign I get the following error.
Code: Select all
2013-04-09 15:45:26.129607 [DEBUG] switch_ivr_originate.c:2039 Parsing global variables
2013-04-09 15:45:26.129607 [ERR] switch_ivr_originate.c:2044 Parse Error!
2013-04-09 15:45:26.129607 [DEBUG] switch_ivr_originate.c:3601 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]
2013-04-09 15:45:26.129607 [INFO] switch_cpp.cpp:1274 [listener.lua] Listener Event : BACKGROUND_JOB
2013-04-09 15:45:26.129607 [INFO] switch_cpp.cpp:1274 [listener.lua] ERROR OUTBOUND:  DESTINATION_OUT_OF_ORDER
(END)


My Trunks seem to be setup correctly & ringing in from elastix to the Newfies-Dialer does show up in the freeswitch logs.
Code: Select all
freeswitch@internal> sofia status
                     Name          Type                                       Data      State
=================================================================================================
                 external       profile          sip:mod_sofia@192.168.60.100:5080      RUNNING (0)
    external::example.com       gateway                    sip:joeuser@example.com      NOREG
external::sip.simtex.com.au     gateway             sip:70097692@sip.simtex.com.au      REGED
  external::192.168.60.51       gateway                      sip:100@192.168.60.51      REGED
           192.168.60.100         alias                                   internal      ALIASED
                 internal       profile          sip:mod_sofia@192.168.60.100:5060      RUNNING (0)
            internal-ipv6       profile                   sip:mod_sofia@[::1]:5060      RUNNING (0)
=================================================================================================


So I'm not sure what's going on here.
aynema
 
Posts: 31
Joined: Tue Apr 09, 2013 5:49 am
Location: Mount Hawthorne

Re: switch_ivr_originate.c:2044 Parse Error!

Postby aynema » Wed Apr 10, 2013 3:28 am

I've now done some more testing with a SIP Client on the Freeswitch side of the system & I can successfully make outgoing & incoming calls but when I create a test contact list & campaign I still get the previous error.
aynema
 
Posts: 31
Joined: Tue Apr 09, 2013 5:49 am
Location: Mount Hawthorne

Re: switch_ivr_originate.c:2044 Parse Error!

Postby aynema » Thu Apr 11, 2013 3:53 am

I've now tried doing a fresh install from scratch following the Quick-Install guide & it still has the same issue. I think this is something internal with Newfies-Dialer not correctly sending the call string to Freeswitch or something
aynema
 
Posts: 31
Joined: Tue Apr 09, 2013 5:49 am
Location: Mount Hawthorne

Re: switch_ivr_originate.c:2044 Parse Error!

Postby areski » Thu Apr 11, 2013 8:27 am

This sounds that you haven't configured your gateway properly within Newfies-Dialer.
I will strongly recommend to read the section "Freeswitch Trunk configuration" from our beginner guide :
http://www.newfies-dialer.org/documenta ... ers-guide/

It explains clearly how to use your FS gateway within Newfies-Dialer.

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: switch_ivr_originate.c:2044 Parse Error!

Postby aynema » Thu Apr 11, 2013 9:17 am

The trunking is configured based on the guide & works correctly from Freeswitch. All I've got set in the two gateway files are.

<include>
<gateway name="sip.server.com">
<param name="username" value="username"/>
<param name="password" value="password"/>
<param name="register" value="true"/>
</gateway>
</include>
aynema
 
Posts: 31
Joined: Tue Apr 09, 2013 5:49 am
Location: Mount Hawthorne

Re: switch_ivr_originate.c:2044 Parse Error!

Postby aynema » Fri Apr 12, 2013 2:00 am

This is what I've got in /etc/freeswitch/sip_profiles/external/zetta.xml (Minus the commented out bits & Passwords)
Code: Select all
<include>
<gateway name="sip.simtex.com.au">
<param name="username" value="********"/>
<param name="password" value="****"/>
<param name="register" value="true"/>
</gateway>
</include>


This shows up with sofia status
Code: Select all
freeswitch@internal> sofia status
                     Name          Type                                       Data      State
=================================================================================================
           192.168.60.100         alias                                   internal      ALIASED
                 internal       profile          sip:mod_sofia@192.168.60.100:5060      RUNNING (0)
            internal-ipv6       profile                   sip:mod_sofia@[::1]:5060      RUNNING (0)
                 external       profile          sip:mod_sofia@192.168.60.100:5080      RUNNING (0)
    external::example.com       gateway                    sip:joeuser@example.com      NOREG
external::sip.simtex.com.au     gateway             sip:********@sip.simtex.com.au      REGED
  external::192.168.60.51       gateway                      sip:100@192.168.60.51      REGED
=================================================================================================


And this is what's set in the dialer gateway in Newfies-Dialer Admin

Name: zetta
Gateways: sofia/gateway/external::sip.simtex.com.au/



Which is as it appears in the beginners guide.
aynema
 
Posts: 31
Joined: Tue Apr 09, 2013 5:49 am
Location: Mount Hawthorne

Re: switch_ivr_originate.c:2044 Parse Error!

Postby areski » Fri Apr 12, 2013 8:13 am

The beginner guide show that you need to set the gateway as follow :

Name: zetta
Gateways: sofia/gateway/sip.simtex.com.au/


Try that way!

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: switch_ivr_originate.c:2044 Parse Error!

Postby aynema » Mon Apr 15, 2013 9:22 am

Okay we've now got it working sorta.

I've changed the gateway settings to this
Code: Select all
<include>
<gateway name="zetta">
<param name="realm" value="sip.simtex.com.au"/>
<param name="username" value="********"/>
<param name="password" value="****"/>
<param name="register" value="true"/>
</gateway>
</include>


And

Code: Select all
Name: zetta
Gateways: sofia/gateway/zetta/




But now I'm having a problem with the Text-To-Speech & getting this error.
Code: Select all
2013-04-15 16:58:08.828372 [INFO] switch_cpp.cpp:1274 [listener.lua] GOOD OUTBOUND: 933139b4-a5aa-11e2-a5ff-778cae294291(END)

2013-04-15 16:58:08.828372 [ERR] mod_lua.cpp:198 /usr/share/newfies-lua/libs/acapela.lua:29: module 'cURL' not found:
        no field package.preload['cURL']
        no file './cURL.lua'
        no file '/usr/local/share/lua/5.1/cURL.lua'
        no file '/usr/local/share/lua/5.1/cURL/init.lua'
        no file '/usr/local/lib/lua/5.1/cURL.lua'
        no file '/usr/local/lib/lua/5.1/cURL/init.lua'
        no file '/usr/share/newfies-lua/cURL.lua'
        no file '/usr/share/newfies-lua/libs/cURL.lua'
        no file '/usr/share/newfies-lua/cURL.lua'
        no file '/usr/share/newfies-lua/libs/cURL.lua'
        no file '/usr/share/newfies-lua/cURL.lua'
        no file '/usr/share/newfies-lua/libs/cURL.lua'
        no file '/usr/share/newfies-lua/cURL.lua'
        no file '/usr/share/newfies-lua/libs/cURL.lua'
        no file '/usr/lib/x86_64-linux-gnu/cURL.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cURL.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/cURL.so'
        no file '/usr/lib/i386-linux-gnu/lua/5.1/cURL.so'
        no file '/usr/local/lib/lua/5.1/cURL.so'
stack traceback:
        [C]: in function 'require'
        /usr/share/newfies-lua/libs/acapela.lua:29: in main chunk
        [C]: in function 'require'
        /usr/share/newfies-lua/libs/texttospeech.lua:28: in main chunk
        [C]: in function 'require'
        /usr/share/newfies-lua/libs/fsm_callflow.lua:22: in main chunk
        [C]: in function 'require'
        /usr/share/newfies-lua/newfies.lua:21: in main chunk
2013-04-15 16:58:08.828372 [DEBUG] switch_cpp.cpp:1049 sofia/external/0404796894 destroy/unlink session from object

But the packages are installed. although the files it's looking for don't exist. What creates those files?
Code: Select all
root@LR-VOIP01:/usr/src/freeswitch# apt-get -y install liblua5.1-curl0 liblua5.1-curl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
liblua5.1-curl-dev is already the newest version.
liblua5.1-curl0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
aynema
 
Posts: 31
Joined: Tue Apr 09, 2013 5:49 am
Location: Mount Hawthorne

Re: switch_ivr_originate.c:2044 Parse Error!

Postby areski » Mon Apr 15, 2013 10:17 am

This issue should be fixed on the newest installation.

The way to fix this has been addressed here :
viewtopic.php?f=3&t=164
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm


Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 18 guests

cron