No, I can't at reasonable cost and time. A2Billing is called as a phpagi file and it's too time taking to do the job givin the various features A2Billing provides. That's the whole dilemma with this. That will be quite some coding work if one is to do. I can change the dial parameter of A2Billing but not to assign Groups to a trunk being dialled out.
One more thing, if it's possible to do through AMI then it should be possible to do through Dial-plan as well. Otherwise the only method left is the "asterisk -rx" which I know is lousy and is probably causing the hang ups. P.S. Had to cut from the bottom of this thread as taug.ca doesn't accept more than 3000 bytes. Wondering if Simon can change that to maybe 9000 bytes? Thanks, -Bruce > Date: Mon, 21 Jun 2010 15:08:41 -0400 > From: [email protected] > To: [email protected]; [email protected] > Subject: Re: [on-asterisk] How to check in dial-plan for a specific codec if > it's being used? > > Can¹t you edit the dialplan used by a2billing (I haven¹t used it, so can¹t > help you there)? > > Gvbridge is just a name, nothing else, I simply copied from an existing > dialplan. > > > On 10-06-21 1:50 PM, "Bruce N" <[email protected]> wrote: > > > You are right that I MAY not need to know the codec type of a channel. But > > that was my workaround for knowing if I should place the call or if the > > trunk > > is busy and not show the call. > > > > "group show channels" doesn't show me anything if I run it on the CLI as the > > call is initiated by A2Billing and A2Billing doesn't assign groups to trunk > > when it dials out hence I don't think GROUP_COUNT can be useful for me. "sip > > show channels" and "core show channels" do show the channel UP state and > > it's > > codec type. > > > > I don't understand the gvbridge portion that you had in your dialplan. Can > > you > > please explain? > > > > Thanks, > > Bruce > > > >> > Date: Mon, 21 Jun 2010 11:07:43 -0400 > >> > From: [email protected] > >> > To: [email protected] > >> > Subject: Re: [on-asterisk] How to check in dial-plan for a specific codec > >> if it's being used? > >> > > >> > Bruce, > >> > > >> > What you asked earlier and what you are asking now seems different. If > >> > you > >> > just need to check if a trunk has a channel available, > >> > > >> > For latter, you can simply use groups and function group_count in your > >> > dialplan. Something like > >> > > >> > exten => _X.,n,GotoIf($[GROUP_COUNT(gvbridge) = 0]?:gvinuse); > >> > exten => _X.,n,Set(GROUP()=gvbridge); > >> > ... > >> > exten => _X.,n,Hangup() > >> > exten => _X.,n(gvinuse),Swift("All channels are busy.") > >> > exten => _X.,n(gvinuse),Hangup() ; Put a busy signal later > >> > > >> > Another option is to use CHANNELS function and filter out the how many > >> > channels is being used in that trunk. > >> > > >> > Can you elaborate on why you need to know the codec on a channel? It > >> > seems > >> > you just need to know if a channel is available or not. > >> > > >> > On 10-06-21 1:10 AM, "Bruce N" <[email protected]> wrote: > >> > > >>> > > > >>> > > Remzi, > >>> > > > >>> > > > >>> > > > >>> > > Thanks for pointing me to that. That's amazing but it only outputs the > >>> dialed > >>> > > channel related info. > >>> > > > >>> > > > >>> > > > >>> > > exten => s,1,Answer() > >>> > > exten => s,n,Set(foo=${CHANNEL(audioreadformat)}) > >>> > > exten => s,n,NoOp(${foo}) > >>> > > > >>> > > That sets $foo = ulaw and it's perfect except for I don't need the > >>> channel > >>> > > info for what I just dialed in but rather those of another channel > >>> > > that > >>> may or > >>> > > may not be in progress is need. > >>> > > > >>> > > > >>> > > > >>> > > In a nutshell, it's a DISA. Caller A calls into the system and is > >>> verfied by a > >>> > > PIN. Afterwards, the dial-plan should check to see if a Specific > >>> > > dialout > >>> trunk > >>> > > is available (as in there are no channels on that Trunk at all) and > >>> > > then > >>> place > >>> > > a call out through that channel. So, the info gather by function > >>> > > CHANNEL > >>> won't > >>> > > help me since it's only related to the DISA-in CHANNEL rather than > >>> > > those > of > >>> > > the trunk that I mentioned. > >>> > > > >>> > > > >>> > > > >>> > > Or maybe there is a way to do it and I have to put some other variable > in > >>> > > CHANNEK(???)? > >>> > > > >>> > > _________________________________________________________________ Turn down-time into play-time with Messenger games http://go.microsoft.com/?linkid=9734385
