[asterisk-users] Acceptance testing of a new PRI

Jay R. Ashworth jra at baylink.com
Fri Jul 25 12:54:21 CDT 2008


On Thu, Jul 24, 2008 at 04:35:33PM +0300, Tzafrir Cohen wrote:
> What's wrong with plain old Zap/NN ?
> 
> [test]
> exten => _6XXX.,1,Dial(Zap/{EXTEN:1:3}/${EXTEN:4})
> 
> Now call 6<chan_num><number-to-dial> in context test.

As it happens, Asterisk 1.2 apparently will not recognize 'Zap/01-1' as
the argument to Dial, I get CHANUNAVAIL.

So I guess I need finally to end up with 

exten => _88XX1NXXNXXXXXX,1,AGI(call_log.agi,${EXTEN})
exten => _88XX1NXXNXXXXXX,2,Dial(Zap/${EXTEN:2:2}-1/${EXTEN:4},30,o)
exten => _88XX1NXXNXXXXXX,3,NoOP(${DIALSTATUS})
exten => _88XX1NXXNXXXXXX,4,NoOP(Hangup Cause: ${HANGUPCAUSE})
exten => _88XX1NXXNXXXXXX,5,Hangup

exten => _880X1NXXNXXXXXX,1,AGI(call_log.agi,${EXTEN})
exten => _880X1NXXNXXXXXX,2,Dial(Zap/${EXTEN:3:1}-1/${EXTEN:4},30,o)
exten => _880X1NXXNXXXXXX,3,NoOP(${DIALSTATUS})
exten => _880X1NXXNXXXXXX,4,NoOP(Hangup Cause: ${HANGUPCAUSE})
exten => _880X1NXXNXXXXXX,5,Hangup

Which I just retested and it works.

Now to figure out how to do it across IAX channels from one server to
another.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274

	     Those who cast the vote decide nothing.
	     Those who count the vote decide everything.
	       -- (Josef Stalin)



More information about the asterisk-users mailing list