Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 8:38 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Strange callback
PostPosted: Thu Apr 16, 2009 7:38 pm 
Offline

Joined: Thu Mar 26, 2009 5:19 am
Posts: 17
Dear friends,
After almost two weeks preying my call back makes a call !!!
But I found some strange thing that I cannot explain.
In the call back daemon log file we may see first call back failed, and next one is success. The asterisk log file attached and also looks like call back process takes few loops.
Please let me direction to discover it.
[2009-04-16 22:03:50] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 0 **

[2009-04-16 22:04:00] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 2 **
UPDATE cc_callback_spool SET status='PROCESSING' WHERE id='38'

WE ARE IN THE PARENT PROCESS -> CHILD PID = 8359 -> RECORD ID = 38
UPDATE cc_callback_spool SET status='PROCESSING' WHERE id='39'

WE ARE IN THE PARENT PROCESS -> CHILD PID = 8362 -> RECORD ID = 39

WE ARE IN THE CHILD PROCESS
SQL =SELECT id, server_ip, manager_host, manager_username, manager_secret, lasttime_used FROM cc_server_manager WHERE id_group='1' ORDER BY lasttime_used ASC LIMIT 1 OFFSET 0

[2009-04-16 22:04:01]
[
[2009-04-16 22:04:01]]
::>>> IO::Socket::INET=GLOB(0x9ab70e0)
[
[2009-04-16 22:04:02]]Response - Error - Message - Originate failed
[
[2009-04-16 22:04:02]]

## CALLBACK FAIL
UPDATE cc_callback_spool SET status='ERROR', manager_result='Error-Originate failed', num_attempt='1', last_attempt_time=now(), id_server='1' WHERE id='39'[
[2009-04-16 22:04:02]]
UPDATE cc_server_manager SET lasttime_used=current_timestamp WHERE id ='1'[
[2009-04-16 22:04:02]]
[END SELECT]

WE ARE IN THE CHILD PROCESS
SQL =SELECT id, server_ip, manager_host, manager_username, manager_secret, lasttime_used FROM cc_server_manager WHERE id_group='1' ORDER BY lasttime_used ASC LIMIT 1 OFFSET 0

[2009-04-16 22:04:00]
[
[2009-04-16 22:04:00]]
::>>> IO::Socket::INET=GLOB(0x9ab70e0)
[
[2009-04-16 22:04:25]]Response - Success - Message - Originate successfully queued
[
[2009-04-16 22:04:25]]

## SUCCESS CALLBACK -> (SIP/gsm/80933500271, 1000, a2billing-callback, 1)
UPDATE cc_callback_spool SET status='SENT', manager_result='Success-Originate successfully queued', num_attempt='1', last_attempt_time=now(), id_server='1' WHERE id='38'[
[2009-04-16 22:04:25]]
[
[2009-04-16 22:04:25]]
[END SELECT]

[2009-04-16 22:04:25] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 0 **


Attachments:
full.txt [110.16 KiB]
Downloaded 539 times
Top
 Profile  
 
 Post subject: Re: Strange callback
PostPosted: Fri May 01, 2009 4:35 pm 
Offline

Joined: Fri Apr 24, 2009 7:34 pm
Posts: 11
It seems to be picking up 2 calls from a single incoming call. It may hangup and then picks up the same call again thinking it is another one. Maybe implement a wait after the deadagi command before it hangsup.

ex:exten => _X.,n,deadAGI(a2billing.php|2|cid-callback)
exten => _X.,n,Wait(1)
exten => _X.,n,Hangup

Increase the time if ever it still picks up another call.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group