Campaign don't work

Moderator: areski

Campaign don't work

Postby dinhthuc » Sat Mar 31, 2012 3:48 am

I have installed Newfies on Centos 6.2. I have setup a Campaign for call out but not work

I have check all system and everything run well.

Please check my Log Newfies and how to degug Plivion (I can't see on freeswitch - ./fs_cli)

2818832579 () assad (None) 0 2818832579 (None) NOT AUTHORIZED March 31, 2012, 7:08 a.m.
17 12818832579 () assad (None) 0 12818832579 (None) IN PROCESS March 31, 2012, 7:08 a.m.


Thanks
Attachments
var_log.rar
(187.31 KiB) Downloaded 708 times
dinhthuc
 
Posts: 12
Joined: Thu Mar 22, 2012 9:18 am

Re: Campaign don't work

Postby areski » Sat Mar 31, 2012 9:04 am

Hello,

In the celery logs, I don't see that the system found calls to spool, so Newfies-Dialer is not even trying to outbound calls.
This could be related to campaign or server timezone not configured correctly.

This week we released 2 new versions therefor I will advice you to reinstall Newfies-Dialer completely, we are now at the version 1.2.12 which brings a lot of improvement on the backend system, plus an upgrade to celery 2.5.

Keep us updated.

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

Re: Campaign don't work

Postby dinhthuc » Sat Mar 31, 2012 6:56 pm

Thank for reply

I have called sucess !!!

Nice to hear that we will have new version on this week. I will wait and upgrade
dinhthuc
 
Posts: 12
Joined: Thu Mar 22, 2012 9:18 am

Re: Campaign don't work

Postby dinhthuc » Wed May 02, 2012 11:37 am

I try to call out and I see the answer but call is ended immediately. Please see log beblow:


2012-05-02 15:26:15,257 plivo-rest[1734]: DEBUG: Call try for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f with Gateway sofia/gateway/iCall/
2012-05-02 15:26:15,258 plivo-rest[1734]: DEBUG: spawn_originate: originate {plivo_request_uuid=a1015b3c-9449-11e1-9f29-112d6a25d41f,plivo_answer_url=http://199.21.115.144:8008/api/v1/answercall/,plivo_ring_url=,plivo_hangup_url=http://199.21.115.144:8008/api/v1/hangupcall/,origination_caller_id_number=999999999,bridge_early_media=true,hangup_after_bridge=true,plivo_from=999999999,plivo_to=12818832738,plivo_app=true,absolute_codec_string='PCMA,PCMU',originate_timeout=1800,ignore_early_media=true}sofia/gateway/iCall/12818832738 &socket('127.0.0.1:8084 async full')
2012-05-02 15:26:15,264 plivo-rest[1734]: DEBUG: Waiting Call attempt for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f ...
2012-05-02 15:26:21,848 plivo-rest[1734]: DEBUG: Notify Call success for RequestUUID 8f2635c2-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:21,849 plivo-rest[1734]: INFO: Hangup for Outgoing CallUUID 8f269274-9449-11e1-a377-8798684e23eb Completed, HangupCause NORMAL_CLEARING, RequestUUID 8f2635c2-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:21,849 plivo-rest[1734]: DEBUG: Call Cleaned up for RequestUUID 8f2635c2-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:21,849 plivo-rest[1734]: INFO: Fetching POST http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'8581', 'variable_billmsec': u'80', 'variable_user_context': '', 'To': u'12818832579', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_mduration': u'36540', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'36', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832579>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_answermsec': u'36460', 'CallUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'ALegRequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335957981761601', 'ALegUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_answer_epoch': u'1335957981', 'variable_waitsec': u'0', 'variable_billsec': u'0', 'variable_duration': u'36', 'RequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'}
2012-05-02 15:26:21,866 plivo-rest[1734]: ERROR: Sending to POST http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'8581', 'variable_answermsec': u'36460', 'variable_user_context': '', 'To': u'12818832579', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_billmsec': u'80', 'variable_mduration': u'36540', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'36', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832579>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_duration': u'36', 'CallUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'ALegRequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335957981761601', 'ALegUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_answer_epoch': u'1335957981', 'variable_waitsec': u'0', 'variable_billsec': u'0', 'RequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'} -- Error: HTTP Error 401: UNAUTHORIZED
2012-05-02 15:26:22,983 plivo-rest[1734]: DEBUG: Notify Call success (EarlyMedia) for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:22,983 plivo-rest[1734]: INFO: Call Attempt OK for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,015 plivo-rest[1734]: DEBUG: Notify Call success for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,016 plivo-rest[1734]: INFO: Hangup for Outgoing CallUUID a102489e-9449-11e1-a37b-8798684e23eb Completed, HangupCause NORMAL_CLEARING, RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,016 plivo-rest[1734]: DEBUG: Call Cleaned up for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,016 plivo-rest[1734]: INFO: Fetching POST http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'7700', 'variable_billmsec': u'60', 'variable_user_context': '', 'To': u'12818832738', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_mduration': u'37739', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'37', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832738>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_answermsec': u'37679', 'CallUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'ALegRequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335958012941857', 'ALegUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_answer_epoch': u'1335958012', 'variable_waitsec': u'0', 'variable_billsec': u'1', 'variable_duration': u'38', 'RequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'}
2012-05-02 15:26:53,023 plivo-rest[1734]: ERROR: Sending to POST http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'7700', 'variable_answermsec': u'37679', 'variable_user_context': '', 'To': u'12818832738', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_billmsec': u'60', 'variable_mduration': u'37739', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'37', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832738>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_duration': u'38', 'CallUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'ALegRequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335958012941857', 'ALegUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_answer_epoch': u'1335958012', 'variable_waitsec': u'0', 'variable_billsec': u'1', 'RequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'} -- Error: HTTP Error 401: UNAUTHORIZED
dinhthuc
 
Posts: 12
Joined: Thu Mar 22, 2012 9:18 am

Re: Campaign don't work

Postby areski » Wed May 02, 2012 12:02 pm

Can you post the file /usr/share/newfies/settings_local.py
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign don't work

Postby dinhthuc » Wed May 02, 2012 3:58 pm

Before i change setting_local.py I have error blow:
I think that URL: http://:8008/api/v1/hangupcall/ error, so I have add more my address to serring_local.py and I have error above. Please check file setting_local.py

2012-05-02 15:08:21,629 plivo-rest[1858]: INFO: Fetching POST http://:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'8440', 'variable_billmsec': u'160', 'variable_user_context': '', 'To': u'12818832579', 'variable_progressmsec': u'0', 'From': u'999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_mduration': u'33900', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'0cde6c4e-9447-11e1-9c62-c1c1fb477838', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'34', 'variable_plivo_answer_url': u'http://:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832579>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999', 'variable_direction': u'outbound', 'variable_answermsec': u'33740', 'CallUUID': u'0cde6c4e-9447-11e1-9c62-c1c1fb477838', 'ALegRequestUUID': u'0cdcbfd4-9447-11e1-a72f-99a942e73a0a', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335956901456431', 'ALegUUID': u'0cde6c4e-9447-11e1-9c62-c1c1fb477838', 'variable_answer_epoch': u'1335956901', 'variable_waitsec': u'0', 'variable_billsec': u'0', 'variable_duration': u'34', 'RequestUUID': u'0cdcbfd4-9447-11e1-a72f-99a942e73a0a', 'variable_endpoint_disposition': u'ANSWER'}
2012-05-02 15:08:21,741 plivo-rest[1858]: ERROR: Sending to POST http://:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'8440', 'variable_answermsec': u'33740', 'variable_user_context': '', 'To': u'12818832579', 'variable_progressmsec': u'0', 'From': u'999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_billmsec': u'160', 'variable_mduration': u'33900', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'0cde6c4e-9447-11e1-9c62-c1c1fb477838', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'34', 'variable_plivo_answer_url': u'http://:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832579>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999', 'variable_direction': u'outbound', 'variable_duration': u'34', 'CallUUID': u'0cde6c4e-9447-11e1-9c62-c1c1fb477838', 'ALegRequestUUID': u'0cdcbfd4-9447-11e1-a72f-99a942e73a0a', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335956901456431', 'ALegUUID': u'0cde6c4e-9447-11e1-9c62-c1c1fb477838', 'variable_answer_epoch': u'1335956901', 'variable_waitsec': u'0', 'variable_billsec': u'0', 'RequestUUID': u'0cdcbfd4-9447-11e1-a72f-99a942e73a0a', 'variable_endpoint_disposition': u'ANSWER'} -- Error: <urlopen error [Errno 8] ARES_EBADNAME: Misformatted domain name>
Attachments
settings_local.rar
setting_local.py
(1.22 KiB) Downloaded 724 times
dinhthuc
 
Posts: 12
Joined: Thu Mar 22, 2012 9:18 am

Re: Campaign don't work

Postby areski » Wed May 02, 2012 4:08 pm

On which OS are you trying to install Newfies ?

In your settings_local.py, you can see that :
Timezone wasn't set correctly -> TIME_ZONE = ''
You should have something like this : TIME_ZONE = 'Europe/Madrid'

then API_ALLOWED_IP miss your IP, I suppose you should have something like :

API_ALLOWED_IP = [
'127.0.0.1',
'localhost',
'199.21.115.144',
]
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign don't work

Postby dinhthuc » Wed May 02, 2012 4:52 pm

I install on centos 6.2, How to know my server use Time Zone ?
dinhthuc
 
Posts: 12
Joined: Thu Mar 22, 2012 9:18 am

Re: Campaign don't work

Postby areski » Wed May 02, 2012 11:27 pm

I think in CentOS you might find the right info in the file /etc/sysconfig/clock
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign don't work

Postby dinhthuc » Thu May 03, 2012 3:16 am

Thank for quick reply. I run well
dinhthuc
 
Posts: 12
Joined: Thu Mar 22, 2012 9:18 am

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 96 guests

cron