Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Sep 17, 2019 5:00 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Callback Originate Failed
PostPosted: Sat Dec 08, 2007 11:46 pm 
Offline

Joined: Fri Dec 15, 2006 8:01 pm
Posts: 72
Hi I looked in the a2billing-callback-daemon.log

[2007-12-08 1:57:23] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 1 **
UPDATE cc_callback_spool SET status='PROCESSING' WHERE id='7'

WE ARE IN THE PARENT PROCESS -> CHILD PID = 4299 -> RECORD ID = 7

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

[2007-12-08 1:57:23]
[
[2007-12-08 1:57:23]]
::>>> IO::Socket::INET=GLOB(0x89a13c8)
[
[2007-12-08 1:57:53]]Response - Error - Message - Originate failed
[
[2007-12-08 1:57:53]]

## CALLBACK FAIL
UPDATE cc_callback_spool SET status='ERROR', manager_result='Error-Originate failed', num_attempt='1', last_attempt_time=now(), id_s
erver='1' WHERE id='7'[
[2007-12-08 1:57:53]]
UPDATE cc_server_manager SET lasttime_used=current_timestamp WHERE id ='1'[
[2007-12-08 1:57:53]]
[END SELECT]

This is the peer

[a2billing-callback]
exten =>_X.,1,DeadAGI(a2billing.php|4|all-callback)
exten =>_X.,2,Hangup

Any help would be appreciated

Joe L.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 08, 2007 11:51 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
'Originate failed' is the clue here. It's telling you that the callback daemon failed to successfully originate the callback leg through Asterisk.
To get a better idea what the problem might be you need to be watching the Asterisk console (with 'set verbose 15') when the daemon attempts the callback.
You may find the daemon is having trouble logging on to the Asterisk Manager Interface, or it may be a problem with your dialplan and the extension & context the daemon is trying to call.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 12:23 am 
Offline

Joined: Fri Dec 15, 2006 8:01 pm
Posts: 72
Hi Starvos,

I had set the verbose to 15 and set debug to 3 no message appears other than this:

== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'myasterisk' logged on from 127.0.0.1
== Manager 'myasterisk' logged off from 127.0.0.1

Any ideas Joe L.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 12:30 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Enabling Asterisk's agi debug might give more clues.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 12:39 am 
Offline

Joined: Fri Dec 15, 2006 8:01 pm
Posts: 72
I should have mentioned I ran the agi debug and sip debug no clues.

Joe


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 1:02 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I don't think SIP debug would add anything useful to your reading. Did the AGI debug not show some message after the Dial() command was sent?
Carefully check the context_callback and extension the [callback] section of a2billing.conf references exist in extensions.conf.

Added after 4 minutes:

Perhaps a2billing_agi.log might also give some clues, but only if the callback leg is getting as far as launching a2b.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 2:06 am 
Offline

Joined: Fri Dec 15, 2006 8:01 pm
Posts: 72
Hi Starvos,

Question: What should my peer look like in extensions.conf

should i use the all-callback cid-callback or web-callback?

There was nothing in the a2billing_agi.log

Joe


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 2:20 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Joe L. wrote:
Question: What should my peer look like in extensions.conf
should i use the all-callback cid-callback or web-callback?
See the documentation in the addons/Doc folder.
Cheers,
stavros


Top
 Profile  
 
 Post subject: Re: Callback Originate Failed
PostPosted: Wed Jun 03, 2009 8:27 am 
Offline

Joined: Wed Jun 03, 2009 8:22 am
Posts: 2
Do one thing

Just add "originate" in your manager configuration

[myasterisk]
secret = ******
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.255
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate

And restart your asterisk

It will work........


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group