Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 1:25 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: a2billing with call file
PostPosted: Fri Jun 01, 2012 7:30 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi,

I am using call file to send outbound calls these files are generated by application but when the call is made it is connected but nothing happens & it gets disconnected in few seconds , no deduction is made in a2billing as well.

We are using Dahdi not SIP, please advice

Thanks in advance

CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 8:49 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

You haven not given us much information to go on, but check you are ultimately calling a2billing.php, and that you have set the accountcode to authenticate.

Yours

Joe


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 11:01 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi JR

Here are the details

I have a context in extensions.conf

[test-context]
This has tts enabled application

The call files are generated from MySQL database using a php daemon,

here is the sample .call file generated by the daemon

Channel: SIP/5922170418
CallerID: 5922170418
MaxRetries: 1
RetryTime: 30
context: a2billing
extension: 9930573730
priority: 1

this is automated dialer system, what we are trying to achieve is when the call is connected it plays the application from [test-context] which plays a message using tts and disconnect.

which is not happening now

Please advice

Thanks in advance

Best Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 11:09 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Have you considered simply using one of our other products - http://www.newfies-dialer.org/

In your call file, shouldn't context: a2billing be context:test-context

Joe


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 11:14 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi JR,

ok so where do I call a2billing context in [test-context] ?

because it calls both the legs src & dest, where as we want to call only dest numbers from the list.

yes we will be trying out new-fies as well.

Thanks in advance

Best Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 11:29 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Are you sure you are approaching this in the right way.

I would look at using the A Option in the dial command parameters in the agi-conf

Quote:
A(x)
Plays an announcement to the called party, where x is the sound file prefix. For example, A(confirm) would play the most efficient version of confirm (such as confirm.gsm, or confirm.wav) that can be found in the /var/lib/asterisk/sounds directory.


Then setting a channel variable for (x) for the soundfile to play, and as this is TTS, you would write the soundfile to disk first before calling A2Billing.

So your dial plan, triggered by the call file would:

1. TTS a file to disk
2. Set a channel variable with the name of the file.
3. Set the accountcode so the call is authenticated automatically
4. Call a2billing.php with the number to call.

But on the other hand, why bother, when Newfies-Dialer can probably do this already.

Joe


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 11:39 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi JR,

Thanks for the information, one last thing where do i set the account code ?

Thanks in advance

Best Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 11:43 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

As explained, Step 3 of the dialplan, but there may be other solutions, e.g. http://www.the-asterisk-book.com/unstab ... -file.html


Joe


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Fri Jun 01, 2012 1:00 pm 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi JR,

Sorry troubling you again here is my call file

Channel: Dahdi/g0/9930573730
CallerID: 5922170418
MaxRetries: 1
RetryTime: 30
Context: test-a2b-context
Extension: SIP/5922170418

-----------------------------------------------
& Here is my context

[test-a2b-context]
exten => _X.,1,Answer()
exten => _X.,n,NoOp(Set(CDR(accountcode)=5922170418))
exten => _X.,n,Wait(1)
exten => _X.,n,Playback(hello-world)
exten => _X.,n,Hangup()

This works good but where do i have to call a2billing context ?

Thanks in Advance
Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Sat Jun 02, 2012 7:29 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi Joe,

Any thoughts or suggestion on the issue ?

I am eagerly waiting for your response on the issue.

Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Sat Jun 02, 2012 7:40 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

I've made it really clear what to do in my previous posts.

Quote:
1. TTS a file to disk
2. Set a channel variable with the name of the file.
3. Set the accountcode so the call is authenticated automatically
4. Call a2billing.php with the number to call.


Your work so far looks nothing like this call flow, So I don't know how to help you further.

Joe


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Sat Jun 02, 2012 7:53 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi Joe,

If you can please help me with a sample dial plan,
This is killing me :)

Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Sat Jun 02, 2012 10:05 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi JR,

Here is what i did

-----------------------------------------
This context will play default message

[tts-app]
exten => s,1,Answer
exten => s,n,NoOP(Set(accountcode=5922170418))
exten => s,n,AGI(a2billing,1)
exten => s,n,Swift(Default Message)
exten => s,n,Hangup

-----------------------------------------

This is my call file

Channel: Dahdi/g0/9930573730
CallerID: 5922170418
MaxRetries: 1
RetryTime: 30
Context: tts-app
Extension: 5922170418

-------------------------------------

It still does not works, is this the way you recommended?


Thanks in advance

Best Regards
CJ


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Sat Jun 02, 2012 12:03 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

The channel you are calling in the call file should be the local channel, as it is A2Billing that is making the call ultimately, not your call file. so you need to dial using the local channel, to the tts-app context with extension 9930573730

You don't appear to have written the message to play to file, and set a variable (x) for the dial command parameter A(x)

And it should be a2billing.php, not just a2billing.


Top
 Profile  
 
 Post subject: Re: a2billing with call file
PostPosted: Tue Jun 05, 2012 8:02 am 
Offline

Joined: Tue May 22, 2012 11:26 am
Posts: 20
Hi JR,

I modified the call file

Channel: SIP/6000 [This is local SIP Channel ]
CallerID: 5922170418
MaxRetries: 1
RetryTime: 30
Context: tts-app-context
Extension: Dahdi/g0/9930573730@a2billing

Also changed it from a2billing to a2billing.php

But I am confused here a bit with Dial A(x) command, I am not an expert in dial plan, that's the reason I requested you to help me with a sample dial plan code.

Also how to let a2billing know to dial this ?

appreciate all the help

Thanks in advance

Best Regards
CJ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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