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

callback not working (a2billing 1.7.0)
http://forum.asterisk2billing.org/viewtopic.php?f=35&t=7827
Page 1 of 1

Author:  munirhossain [ Tue Jun 22, 2010 9:57 am ]
Post subject:  callback not working (a2billing 1.7.0)

Hello

I followed the below instruction to install callback system

LOAD_LOC=/usr/src/a2billing

yum -y install python-setuptools.noarch
yum -y install MySQL-python
easy_install sqlalchemy

cd $LOAD_LOC/Callback/callback-daemon-py
cp $LOAD_LOC/CallBack/callback-daemon-py/build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon
chmod +x /etc/init.d/a2b-callback-daemon

cd $LOAD_LOC/CallBack/callback-daemon-py/
python setup.py build
python setup.py bdist_egg
easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg
chkconfig –add a2b-callback-daemon
service a2b-callback-daemon start
chkconfig a2b-callback-daemon on


****add these lines in extensions.conf

[a2billing-cid-callback]
exten => _X.,1,deadagi(a2billing.php|1|cid-callback|||1)
exten => _X.,n,Hangup

=====
**** Now i can start a2b-callback-daemon successfully.

[root@mytelecom ~]# service a2b-callback-daemon restart
Stopping a2b-callback-daemon: [ OK ]
a2b_callback_daemon is stopped
Starting a2b-callback-daemon: [ OK ]
[root@mytelecom ~]#

******but callback still not triggered

Peer audio RTP is at port XX.XXX.41.101:43456
Looking for XX15495369 in a2billing-cid-callback (domain XX.53.XX.XXX)
list_route: hop: <sip:[email protected]:5060;tgrp=TG_CORE_NBS>
elecom*CLI>
<--- Transmitting (no NAT) to X.XX.XX.41.100:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP X.XX.XX.41.100:5060;branch=z9hG4bKa6b903ddba83882865454ab2b7c4cbbf;received=X.XX.XX.41.100
From: <sip:[email protected]>;tag=3486135034-41390
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Contact: <sip:[email protected]>
Content-Length: 0


<------------>
-- Executing [XX15495369@a2billing-cid-callback:1] DeadAGI("SIP/XX15495369-00000062", "a2billing.php|1|cid-callback|||1") in new stack
[Jun 20 12:50:34] WARNING[31941]: res_agi.c:2212 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1|cid-callback|||1: file:a2billing.php - line:102 - uniqueid: - IDCONFIG : 1
a2billing.php|1|cid-callback|||1: file:a2billing.php - line:103 - uniqueid: - MODE : cid-callback
a2billing.php|1|cid-callback|||1: file:Class.A2Billing.php - line:713 - uniqueid:1277059834.120 - get_agi_request_parameter = 5124108736 ; SIP/3215495369-00000062 ; 1277059834.120 ; ; 3215495369
-- AGI Script a2billing.php completed, returning 0
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: INVITE)

<--- Reliably Transmitting (no NAT) to XX.XX.41.100:5060 --->


******* there are nothing in a2b-callback-daemon.log
but still call back not triggering

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