Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 9:48 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: i want a webcallback without any announces
PostPosted: Mon Jul 01, 2013 12:25 am 
Offline

Joined: Mon Jul 01, 2013 12:08 am
Posts: 2
Dear My Experienced friends,

i have been working on a2billing for 3 weeks. i plan to use it mainly for my webcallback customers. what i want to do is:

when webcallback is created
1. asterisk will call the first leg (CHANNEL)
2. after first leg is connected, asterisk will call the second leg (EXTEN)
3. even if the second leg doesnt connect, system will bill the first leg to the customer.

so my customer will never hear the announce like :"Playing 'prepaid-enter-dest.gsm' (language 'en')"

but i am unable to do this. when i create a new callback over the web interface and set

CHANNEL: SIP/192.168.1.201/6004905497130348 and
EXTEN: 902122727280

asterisk calls first leg(A-leg) which is CHANNEL but it plays me the enter destination number. but i was expecting it will call directly EXTEN as second leg(B-leg

here is my extension.conf:

[a2billing-callback]
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,Set(CALLERID(dnid)=${EXTEN})
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php,2,callback)
exten => _X.,n,Hangup

and here the debug output:

localhost*CLI>
localhost*CLI>
== Manager 'myasterisk' logged on from 127.0.0.1
== Using SIP RTP CoS mark 5
> 0x7f5720016390 -- Probation passed - setting RTP source address to 192.168.1.201:5062
> Channel SIP/192.168.1.201-00000004 was answered
-- Executing [902122727280@a2billing-callback:1] NoOp("SIP/192.168.1.201-00000004", "A2Billing Start") in new stack
-- Executing [902122727280@a2billing-callback:2] Set("SIP/192.168.1.201-00000004", "CALLERID(dnid)=902122727280") in new stack
-- Executing [902122727280@a2billing-callback:3] Wait("SIP/192.168.1.201-00000004", "1") in new stack
> 0x7f5720016390 -- Probation passed - setting RTP source address to 192.168.1.201:5062
== Manager 'myasterisk' logged off from 127.0.0.1
-- Executing [902122727280@a2billing-callback:4] DeadAGI("SIP/192.168.1.201-00000004", "a2billing.php,2,callback") in new stack
[Jun 27 22:49:33] WARNING[2963][C-00000004]: res_agi.c:4012 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,2,callback: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 2
a2billing.php,2,callback: file:a2billing.php - line:118 - uniqueid: - MODE : callback
a2billing.php,2,callback: file:a2billing.php - line:130 - uniqueid: - AGI Request:
a2billing.php,2,callback: Array
a2billing.php,2,callback: (
a2billing.php,2,callback: [agi_request] => a2billing.php
a2billing.php,2,callback: [agi_channel] => SIP/192.168.1.201-00000004
a2billing.php,2,callback: [agi_language] => en
a2billing.php,2,callback: [agi_type] => SIP
a2billing.php,2,callback: [agi_uniqueid] => 1372387771.4
a2billing.php,2,callback: [agi_version] => 11.4.0
a2billing.php,2,callback: [agi_callerid] => 0061477765110
a2billing.php,2,callback: [agi_calleridname] => unknown
a2billing.php,2,callback: [agi_callingpres] => 0
a2billing.php,2,callback: [agi_callingani2] => 0
a2billing.php,2,callback: [agi_callington] => 0
a2billing.php,2,callback: [agi_callingtns] => 0
a2billing.php,2,callback: [agi_dnid] => 902122727280
a2billing.php,2,callback: [agi_rdnis] => unknown
a2billing.php,2,callback: [agi_context] => a2billing-callback
a2billing.php,2,callback: [agi_extension] => 902122727280
a2billing.php,2,callback: [agi_priority] => 4
a2billing.php,2,callback: [agi_enhanced] => 0.0
a2billing.php,2,callback: [agi_accountcode] => 1637055368
a2billing.php,2,callback: [agi_threadid] => 140011787405056
a2billing.php,2,callback: [agi_arg_1] => 2
a2billing.php,2,callback: [agi_arg_2] => callback
a2billing.php,2,callback: )
a2billing.php,2,callback:
a2billing.php,2,callback: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.4]
a2billing.php,2,callback: file:Class.A2Billing.php - line:712 - uniqueid:1372387771.4 - get_agi_request_parameter = 0061477765110 ; SIP/192.168.1.201-00000004 ; 1372387771.4 ; 1637055368 ; 902122727280
a2billing.php,2,callback: file:a2billing.php - line:1070 - uniqueid:1372387771.4 - [CALLBACK]:[MODE : CALLBACK]
a2billing.php,2,callback: file:a2billing.php - line:1071 - uniqueid:1372387771.4 - 1
a2billing.php,2,callback: file:a2billing.php - line:1074 - uniqueid:1372387771.4 - [CALLBACK]:[ANSWER CALL]
a2billing.php,2,callback: file:a2billing.php - line:1120 - uniqueid:1372387771.4 - GOKHAN-4
a2billing.php,2,callback: file:a2billing.php - line:1134 - uniqueid:1372387771.4 - [CALLBACK]:[GET VARIABLE : CALLED=905497130348|CALLING=902122727280|CBID=97092-i2bowca|LEG=1637055368 | CALLING= | MODE= | TARIFF= | CBID= | LEG= | CALLERID=0061477765110]
a2billing.php,2,callback: file:a2billing.php - line:1138 - uniqueid:1372387771.4 - [CALLBACK : UPDATE CALLBACK AGI_RESULT : QUERY=UPDATE cc_callback_spool SET agi_result='AGI PROCESSING' WHERE uniqueid='']
a2billing.php,2,callback: file:a2billing.php - line:1142 - uniqueid:1372387771.4 - [CALLBACK]:[TRY : callingcard_ivr_authenticate]
a2billing.php,2,callback: file:a2billing.php - line:1151 - uniqueid:1372387771.4 - [CALLBACK]:[Start]
a2billing.php,2,callback: file:a2billing.php - line:1171 - uniqueid:1372387771.4 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=6]:[ORIG_CREDIT : 9977.24262 - CUR_CREDIT - : 9976.24262 - CREDIT MIN_CREDIT_2CALL : 0]
-- <SIP/192.168.1.201-00000004> Playing 'prepaid-enter-dest.gsm' (language 'en')



as you can see, it is playing me 'prepaid-enter-dest.gsm' file. i am using agiconf2 for this call and everything related to announcements are set to No:

answer_call No
play_audio No
say_goodbye No
play_menulanguage No
use_dnid Yes
say_balance_after_auth No
say_balance_after_call No
say_rateinitial No
say_timetocall No
auto_setcallerid Yes
cid_sanitize CID


i dont know if there are any other configuration?

my asterisk is 1.11 and a2billing is 2.0.4

i really really appreciate if you can help and guide me how to achieve to be able to make callbacks over web without any announce or prompt. and also i need both first leg and second leg has to be billed


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
VoIP Billing solution


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