Have to answer your inbound call first - I suspect
On Aug 4, 2005, at 5:28 PM, Tim King wrote:
[macro-dialout-trunk]
exten => s,1,GotoIf($[foo${ARG3} = foo]?3:2)) ; arg3 is pattern
password
exten => s,2,Authenticate(${ARG3})
exten => s,3,Macro(record-enable,${CALLERIDNUM},OUT)
exten => s,4,GotoIf($[foo${ECID${CALLERIDNUM}} = foo]?7) ;check
for CID override for exten
exten => s,5,SetCallerID(${ECID${CALLERIDNUM}})
exten => s,6,Goto(9)
exten => s,7,GotoIf($[foo${OUTCID_${ARG1}} = foo]?9) ;check for
CID override for trunk
exten => s,8,SetCallerID(${OUTCID_${ARG1}})
exten => s,9,SetGroup(OUT_${ARG1})
exten => s,10,CheckGroup(${OUTMAXCHANS_${ARG1}})
; if we've used up the max channels, continue at 109 (n+101)
exten => s,11,SetVar(DIAL_NUMBER=${ARG2})
exten => s,12,SetVar(DIAL_TRUNK=${ARG1})
exten => s,13,AGI(fixlocalprefix) ; this sets DIAL_NUMBER to the
proper dial string for this trunk
exten => s,14,SetVar(OUTNUM=${OUTPREFIX_${ARG1}}${DIAL_NUMBER}) ;
OUTNUM is the final dial number
exten => s,15,Cut(custom=OUT_${ARG1},:,1) ; Custom trunks are
prefixed with "AMP:"
exten => s,16,GotoIf($[${custom} = AMP]?19)
exten => s,17,Dial(${OUT_${ARG1}}/${OUTNUM}) ; Regular Trunk Dial
exten => s,18,Goto(s-${DIALSTATUS},1)
From: [EMAIL PROTECTED] [mailto:asterisk-
[EMAIL PROTECTED] On Behalf Of Jason Walker
Sent: Thursday, August 04, 2005 6:23 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Outbound Extension problem
Can you post your macro?
Thanks.
From: [EMAIL PROTECTED] [mailto:asterisk-
[EMAIL PROTECTED] On Behalf Of Tim King
Sent: Thursday, August 04, 2005 2:56 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [Asterisk-Users] Outbound Extension problem
New problem, I figured out how to get the extension working and
internally it works just fine. If I pick up a phone and hit 501 my
cell starts ringing. However if an inbound caller dials that
extension Everything seems to stop when it trys to bridge the two
trunks together. Sound familiar to anyone?
exten => 501,1,Macro(dialout-trunk,1,5551212)
exten => 501,2,Wait,1
exten => 501,3,Voicemail(300)
Thanks
Tim
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users