[asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread Mario
I have a Sangoma PRI card configured for E1 line (i.e. 30+1 channels per port) and I'm not quite sure on how the Dial command should performed. I'm using the standard Dial command as if it were a Zap channel. For example Dial(Zap/1/1234) ; Dial 1234 using channel 1 on port 1

Re: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread Lacy Moore - Aspendora
I dial using groups. Dial(Zap/g1/1234) I'm pretty sure this was taken off of the examples on the Sangoma website. On 9/19/06, Mario [EMAIL PROTECTED] wrote: I have a Sangoma PRI card configured for E1 line (i.e. 30+1 channels perport) and I'm not quite sure on how the Dial command should

Re: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread Mario
That's ok if I want to dial through a group. But, for my specific requirements, I need to dial through a specific channel. I even need to use the ChanIsAvail application to discover which channels are available. Thus, without using a group, which is the correct way to dial through a PRI?

Re: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread yusuf
hi, I did it like this: I wrote a PHP AGI script, that I call from the dial plan. In the AGI I check fwrite(STDOUT,CHANNEL STATUS $currchan \n); fflush(STDOUT); where currchan is ZAP/1 for instance. It returns whether the channel is used. I then pass this back as a variable back to

Re: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread Mario
ysuf, that's exactly what I'm doing (in Python instead of PHP, but that doesn't matter). However, my question is: should I ask if ZAP/1 is available or if ZAP/1-1 is available? For example: ChanIsAvail(Zap/1Zap/2Zap/3) or ChanIsAvail(Zap/1-1Zap/1-2Zap/1-3) And, once discovered

Re: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread yusuf
Mario, try ChanIsAvail(Zap/1-1) but when you dial, its Zap/1/${EXTEN} HTH Mario wrote: ysuf, that's exactly what I'm doing (in Python instead of PHP, but that doesn't matter). However, my question is: should I ask if ZAP/1 is available or if ZAP/1-1 is available? For example:

Re[2]: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread Melcon Moraes
I just use Dial(Zap/1/1234) []'s MM -Original Message- From: Mario [EMAIL PROTECTED] To: asterisk-users@lists.digium.com Cc: Sent: Tue, 19 Sep 2006 12:17:07 +0200 Delivered: Tue, 19 Sep 2006 07:06:25 Subject:[asterisk-users] How to Dial a number with Sangoma PRI card?

Re: [asterisk-users] How to Dial a number with Sangoma PRI card?

2006-09-19 Thread Tristan
You should try : exten = _,n,ChanIsAvail(Zap/XY) exten = _,n,NoOp(AvailChannel=${AVAILCHAN}) exten = _,n,Set(__DialChannel=${CUT(AVAILCHAN,,1)}) exten = _,n,Dial(${DialChannel}/YOURNUMTODIAL) Where X stands for the strategy to fill your PRI ( r,R,g,G,.. ) and Y stands for the