--
You received this message because you are subscribed to the Google Groups "Plivo Opensource Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plivo-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016-11-17 07:53:39.217417 [INFO] mod_dialplan_xml.c:558 Processing +2348135693957 <+2348135693957>->+12677992092 in context public
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->unloop] continue=false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->outside_call] continue=true
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Absolute Condition [outside_call]
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action set(outside_call=true)
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->call_debug] continue=true
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->plivo_public_did] continue=false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (PASS) [plivo_public_did] destination_number(+12677992092) =~ /^\+?[0-9]{3}-?[0-9]{6,12}$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action enable_heartbeat(60)
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action socket(127.0.0.1:8084 async full)
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State Change CS_ROUTING -> CS_EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [BREAK]
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:474 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State ROUTING going to sleep
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) Running State Change CS_EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] mod_sofia.c:243 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SOFIA EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:209 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Standard EXECUTE
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com set(outside_call=true)
2016-11-17 07:53:39.217417 [DEBUG] mod_dptools.c:1402 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SET [outside_call]=[true]
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com set(RFC2822_DATE=Thu, 17 Nov 2016 07:53:39 +0000)
2016-11-17 07:53:39.217417 [DEBUG] mod_dptools.c:1402 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SET [RFC2822_DATE]=[Thu, 17 Nov 2016 07:53:39 +0000]
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com enable_heartbeat(60)
2016-11-17 07:53:39.217417 [INFO] switch_core_session.c:1511 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com setting session heartbeat to 60 second(s).
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com socket(127.0.0.1:8084 async full)
2016-11-17 07:53:39.237415 [NOTICE] switch_core_state_machine.c:262 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com has executed the last dialplan instruction, hanging up.
2016-11-17 07:53:39.237415 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [CS_EXECUTE] [NORMAL_CLEARING]
2016-11-17 07:53:39.237415 [DEBUG] switch_channel.c:3189 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [KILL]
2016-11-17 07:53:39.237415 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [BREAK]
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State EXECUTE going to sleep
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) Running State Change CS_HANGUP
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:681 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) Callstate Change RINGING -> HANGUP
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:683 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State HANGUP
2016-11-17 07:53:39.237415 [DEBUG] mod_sofia.c:506 Channel sofia/internal/+234813...@myfreeswitch.pstn.twilio.com hanging up, cause: NORMAL_CLEARING
2016-11-17 07:53:39.237415 [DEBUG] mod_sofia.c:640 Responding to INVITE with: 480
On my plivo-outbound.log, i get this :
2016-11-17 07:53:39,123 plivo-outbound[2161]: INFO: (3) New request from ('127.0.0.1', 37738)
2016-11-17 07:53:39,129 plivo-outbound[2161]: DEBUG: (3) Execute: connect args=''
2016-11-17 07:53:39,129 plivo-outbound[2161]: ERROR: (3) Traceback (most recent call last):
2016-11-17 07:53:39,129 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 319, in run
2016-11-17 07:53:39,129 plivo-outbound[2161]: ERROR: (3) self._run()
2016-11-17 07:53:39,129 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 329, in _run
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) self.connect()
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/src/plivo/src/plivo/core/freeswitch/outboundsocket.py", line 54, in connect
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) connect_response = self._protocol_send("connect")
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 140, in _protocol_send
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) command, args)
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/src/plivo/src/plivo/core/freeswitch/eventsocket.py", line 375, in _protocol_send
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) _uuid, event = _async_res.get()
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/lib/python2.7/site-packages/gevent/event.py", line 370, in get
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) self._wait_core(timeout, ())
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/lib/python2.7/site-packages/gevent/event.py", line 95, in _wait_core
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) result = self.hub.switch()
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/lib/python2.7/site-packages/gevent/hub.py", line 608, in switch
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) switch_out()
2016-11-17 07:53:39,130 plivo-outbound[2161]: ERROR: (3) File "/usr/local/plivo/lib/python2.7/site-packages/gevent/hub.py", line 612, in switch_out
2016-11-17 07:53:39,131 plivo-outbound[2161]: ERROR: (3) raise BlockingSwitchOutError('Impossible to call blocking function in the event loop callback')
2016-11-17 07:53:39,131 plivo-outbound[2161]: ERROR: (3) BlockingSwitchOutError: Impossible to call blocking function in the event loop callback
2016-11-17 07:53:39,131 plivo-outbound[2161]: DEBUG: (3) Releasing Connection ...
2016-11-17 07:53:39,131 plivo-outbound[2161]: DEBUG: (3) Releasing Connection Done
i really don't know where im getting it wrong, i need help.
Also, i am hosting my freeswitch and plivo on a dedicated server with bluehost. assuming i have an IP of 123.45.7.8 and my xml is welcome.xml, meaning its 123.45.7.8/welcome.xml. How do i configure my plivo default.conf and what are the changes i need to make to the default.conf
Thanks
tcp 0 0 127.0.0.1:8084 0.0.0.0:* LISTEN 2161/python
Can you tell me what the output of "ngrep -d any port 8084" on your bash terminal is at the same time ? There's evidently an error that's coming from plivo outbound. I suspect it's because it's sending the connect command to the wrong place and not getting a response but I can't be entirely sure until I see the ngrep.
On Thu, Nov 17, 2016 at 12:04 AM Kolapo Obanewa <kolapo...@gmail.com> wrote:
thanks for the reply. I checked all you listed but i can't seem to find the mistakeOn the fs_cli log, this is what i got when i tried calling into freeswitch
2016-11-17 07:53:39.217417 [INFO] mod_dialplan_xml.c:558 Processing +2348135693957 <+2348135693957>->+12677992092 in context public
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->unloop] continue=false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->outside_call] continue=true
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Absolute Condition [outside_call]
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action set(outside_call=true)
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->call_debug] continue=true
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->plivo_public_did] continue=false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (PASS) [plivo_public_did] destination_number(+12677992092) =~ /^\+?[0-9]{3}-?[0-9]{6,12}$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action enable_heartbeat(60)
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action socket(127.0.0.1:8084 async full)
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) State Change CS_ROUTING -> CS_EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [BREAK]
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:474 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) State ROUTING going to sleep
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) Running State Change CS_EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) State EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] mod_sofia.c:243 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SOFIA EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:209 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Standard EXECUTE
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com set(outside_call=true)
2016-11-17 07:53:39.217417 [DEBUG] mod_dptools.c:1402 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SET [outside_call]=[true]
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com set(RFC2822_DATE=Thu, 17 Nov 2016 07:53:39 +0000)
2016-11-17 07:53:39.217417 [DEBUG] mod_dptools.c:1402 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SET [RFC2822_DATE]=[Thu, 17 Nov 2016 07:53:39 +0000]
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com enable_heartbeat(60)
2016-11-17 07:53:39.217417 [INFO] switch_core_session.c:1511 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com setting session heartbeat to 60 second(s).
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com socket(127.0.0.1:8084 async full)
2016-11-17 07:53:39.237415 [NOTICE] switch_core_state_machine.c:262 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com has executed the last dialplan instruction, hanging up.
2016-11-17 07:53:39.237415 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [CS_EXECUTE] [NORMAL_CLEARING]
2016-11-17 07:53:39.237415 [DEBUG] switch_channel.c:3189 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [KILL]
2016-11-17 07:53:39.237415 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [BREAK]
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) State EXECUTE going to sleep
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) Running State Change CS_HANGUP
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:681 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) Callstate Change RINGING -> HANGUP
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:683 (sofia/internal/+2348135693957@myfreeswitch.pstn.twilio.com) State HANGUP
thanks,The output is below:tcp 0 0 127.0.0.1:8084 0.0.0.0:* LISTEN 2161/python
On Thursday, November 17, 2016 at 10:50:03 PM UTC+1, Nishad Musthafa wrote:Can you tell me what the output of "ngrep -d any port 8084" on your bash terminal is at the same time ? There's evidently an error that's coming from plivo outbound. I suspect it's because it's sending the connect command to the wrong place and not getting a response but I can't be entirely sure until I see the ngrep.On Thu, Nov 17, 2016 at 12:04 AM Kolapo Obanewa <kolapo...@gmail.com> wrote:thanks for the reply. I checked all you listed but i can't seem to find the mistakeOn the fs_cli log, this is what i got when i tried calling into freeswitch2016-11-17 07:53:39.217417 [INFO] mod_dialplan_xml.c:558 Processing +2348135693957 <+2348135693957>->+12677992092 in context public
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->unloop] continue=false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->outside_call] continue=true
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Absolute Condition [outside_call]
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action set(outside_call=true)
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->call_debug] continue=true
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com parsing [public->plivo_public_did] continue=false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Regex (PASS) [plivo_public_did] destination_number(+12677992092) =~ /^\+?[0-9]{3}-?[0-9]{6,12}$/ break=on-false
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action enable_heartbeat(60)
Dialplan: sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Action socket(127.0.0.1:8084 async full)
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State Change CS_ROUTING -> CS_EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [BREAK]
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:474 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State ROUTING going to sleep
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) Running State Change CS_EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] mod_sofia.c:243 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SOFIA EXECUTE
2016-11-17 07:53:39.217417 [DEBUG] switch_core_state_machine.c:209 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com Standard EXECUTE
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com set(outside_call=true)
2016-11-17 07:53:39.217417 [DEBUG] mod_dptools.c:1402 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SET [outside_call]=[true]
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com set(RFC2822_DATE=Thu, 17 Nov 2016 07:53:39 +0000)
2016-11-17 07:53:39.217417 [DEBUG] mod_dptools.c:1402 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com SET [RFC2822_DATE]=[Thu, 17 Nov 2016 07:53:39 +0000]
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com enable_heartbeat(60)
2016-11-17 07:53:39.217417 [INFO] switch_core_session.c:1511 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com setting session heartbeat to 60 second(s).
EXECUTE sofia/internal/+234813...@myfreeswitch.pstn.twilio.com socket(127.0.0.1:8084 async full)
2016-11-17 07:53:39.237415 [NOTICE] switch_core_state_machine.c:262 sofia/internal/+234813...@myfreeswitch.pstn.twilio.com has executed the last dialplan instruction, hanging up.
2016-11-17 07:53:39.237415 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [CS_EXECUTE] [NORMAL_CLEARING]
2016-11-17 07:53:39.237415 [DEBUG] switch_channel.c:3189 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [KILL]
2016-11-17 07:53:39.237415 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/+234813...@myfreeswitch.pstn.twilio.com [BREAK]
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State EXECUTE going to sleep
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) Running State Change CS_HANGUP
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:681 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) Callstate Change RINGING -> HANGUP
2016-11-17 07:53:39.237415 [DEBUG] switch_core_state_machine.c:683 (sofia/internal/+234813...@myfreeswitch.pstn.twilio.com) State HANGUP
apparently i am not the best with command lines so i do not really understand how to run ngrep... i just installed ngrep now so what should i write in my command prompt to get what you are asking for?
--
interface: any
pcap compile: no VLAN support for data link type 113