asterisk2billing.org
http://forum.asterisk2billing.org/

Callback Originate Failed
http://forum.asterisk2billing.org/viewtopic.php?f=16&t=2918
Page 1 of 1

Author:  Joe L. [ Sat Dec 08, 2007 11:46 pm ]
Post subject:  Callback Originate Failed

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.

Author:  stavros [ Sat Dec 08, 2007 11:51 pm ]
Post subject: 

'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.

Author:  Joe L. [ Sun Dec 09, 2007 12:23 am ]
Post subject: 

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.

Author:  stavros [ Sun Dec 09, 2007 12:30 am ]
Post subject: 

Enabling Asterisk's agi debug might give more clues.

Author:  Joe L. [ Sun Dec 09, 2007 12:39 am ]
Post subject: 

I should have mentioned I ran the agi debug and sip debug no clues.

Joe

Author:  stavros [ Sun Dec 09, 2007 1:02 am ]
Post subject: 

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.

Author:  Joe L. [ Sun Dec 09, 2007 2:06 am ]
Post subject: 

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

Author:  stavros [ Sun Dec 09, 2007 2:20 am ]
Post subject: 

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

Author:  smrdoshi [ Wed Jun 03, 2009 8:27 am ]
Post subject:  Re: Callback Originate Failed

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........

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/