[asterisk-users] blind transfer dumping calls
Brian J. Murrell
brian at interlinx.bc.ca
Mon Nov 19 08:14:27 CST 2007
I am using asterisk 1.4.10 and seem to be having a problem with blind
transfer. This could very well be a pebkac problem but I'm not sure.
A call comes in on a Zap channel and answered just find by a context
that does a Goto which calls a macro (seems convoluted now that I look
at it) to do some CID bookkeeping but that ultimately dials all of the
phones interested in calls from the Zap channel:
[inbound-pots]
exten => s,1,Set(CDR(accountcode)=XXXXXXXXXX)
exten => s,n,Goto(inbound-house,s,1)
[inbound-house]
exten => s,1,Macro(dialhouse)
exten => s,2,Hangup
[macro-dialhouse]
exten => s,1,NoOp(${CALLERID(name)} ${CALLERID(num)} ${DATETIME} ${CALLERIDNUM} ${CALLERIDNAME})
exten => s,n,Set(CALLERID(num)=${IF($[${CALLERID(num)}=anonymous]?:${CALLERID(num)})})
exten => s,n,Set(CALLERID(num)=${IF($[${CALLERID(num)}= 1234567 ]?:${CALLERID(num)})})
exten => s,n,PrivacyManager(2,10,j)
exten => s,n,System(/usr/local/bin/callerid "${CALLERID(num)}" "${CALLERID(name)}")
exten => s,n,Dial(${HOUSE}&${OFFICE},30,t)
exten => s,n,Goto(general-voicemail,s,1)
exten => s,n,Hangup
exten => h,1,Hangup
exten => i,1,Hangup
where HOUSE and OFFICE are defined variables:
HOUSE=SIP/house
OFFICE=SIP/1011002206
This all works fine. Those phones ring and I can answer the call. But
when I try to blind transfer on the phone that I answered the call on,
all seems to go well but after the transfer is done, the Zap channel is
dumped:
Called phone keys in '#':
-- Started music on hold, class 'default', on channel 'Zap/1-1'
-- <SIP/1011002206-08245a80> Playing 'pbx-transfer' (language 'en')
Called phone keys in '2005'
-- Stopped music on hold on Zap/1-1
-- Transferring Zap/1-1 to '2005' (context internal-sip) priority 1
== Channel 'Zap/1-1' jumping out of macro 'dialhouse'
Calling party hears click:
-- Hungup 'Zap/1-1'
And the call is dumped by that point.
As a side note, the timeout between the '#' and the extension is quite
short. 3secs or so it seems. Any way to increase that?
Cheers,
b.
More information about the asterisk-users
mailing list