Are you trying to set that when ever some one calls a specific DID then it automaticly rings on an external number ?
You can do this

exten => 1234,1,Dial(SIP/[EMAIL PROTECTED])

Have sip.conf forward the call to exten 1234. So when anyone calls it they get sent to your home phone.

----- Original Message ----- From: "Dan Casey" <[EMAIL PROTECTED]>
To: <asterisk-users@lists.digium.com>
Sent: Thursday, August 03, 2006 2:48 PM
Subject: [asterisk-users] How to forward a call to an outside line


I have a DID route that i want to set up so that it attempts to call a
number that not managed by asterisk.
I have tried a million variables of dial, dialout-trunk, etc but can't
seem to find this.

I can take a call and manually transfer it using my polycom phone, but i
want to automate this.
Here is the output when forward the call manually.

[custom-forwardhome]
exten => s,1,???
exten => s,2,hangup



The process below:
I dial with my cell (914426nnnn) into my DID (914614nnnn).
I pickup, and transfer the call to the outside line (914304nnnn).


phones*CLI>
   -- Executing SetVar("Zap/1-1", "FROM_DID=914614nnnn") in new stack
   -- Executing Goto("Zap/1-1", "ext-local|212|1") in new stack
   -- Goto (ext-local,212,1)
   -- Executing Macro("Zap/1-1", "exten-vm|[EMAIL PROTECTED]|212") in new stack
   -- Executing SetVar("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
   -- Executing Macro("Zap/1-1", "record-enable|212|IN") in new stack
   -- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
   -- Goto (macro-record-enable,s,4)
   -- Executing GotoIf("Zap/1-1", "0?5:8") in new stack
   -- Goto (macro-record-enable,s,8)
   -- Executing GotoIf("Zap/1-1", "0?9:12") in new stack
   -- Goto (macro-record-enable,s,12)
   -- Executing DBget("Zap/1-1", "RecEnable=RECORD-IN/212") in new stack
   -- DBget: varname=RecEnable, family=RECORD-IN, key=212
   -- DBget: Value not found in database.
   -- Executing SetVar("Zap/1-1",
"CALLFILENAME=20060803-144028-1154630428.24777") in new stack
   -- Executing GotoIf("Zap/1-1", "0?15:99") in new stack
   -- Goto (macro-record-enable,s,99)
   -- Executing NoOp("Zap/1-1", "NO RECORDING NEEDED") in new stack
   -- Executing Macro("Zap/1-1", "dial|15|tr|212") in new stack
   -- Executing GotoIf("Zap/1-1", "0?4:2") in new stack
   -- Goto (macro-dial,s,2)
   -- Executing GotoIf("Zap/1-1", "0?4:3") in new stack
   -- Goto (macro-dial,s,3)
   -- Executing SetCIDName("Zap/1-1", "914426nnnn") in new stack
   -- Executing AGI("Zap/1-1", "dialparties.agi") in new stack
   -- Accepting call from '914426nnnn' to '914614nnnn' on channel 0/1,
span 1
   -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
   --  dialparties.agi: request = dialparties.agi
   --  dialparties.agi: priority = 4
   --  dialparties.agi: extension = s
   --  dialparties.agi: language = en
   --  dialparties.agi: accountcode =
   --  dialparties.agi: uniqueid = 1154630428.24777
   --  dialparties.agi: channel = Zap/1-1
   --  dialparties.agi: callerid = 914426nnnn <914426nnnn>
   --  dialparties.agi: context = macro-dial
   --  dialparties.agi: type = Zap
   --  dialparties.agi: rdnis = unknown
   --  dialparties.agi: enhanced = 0.0
   --  dialparties.agi: dnid = 914614nnnn
 dialparties.agi: Caller ID name is '914426nnnn' number is '914426nnnn'
   --  dialparties.agi: Added extension 212 to extension map
   --  dialparties.agi: Extension 212 cf is disabled
   --  dialparties.agi: Extension 212 do not disturb is disabled
 == Parsing '/etc/asterisk/manager.conf': Found
 == Manager 'admin' logged on from 127.0.0.1
 == Manager 'admin' logged off from 127.0.0.1
 dialparties.agi: Extension 212 has call waiting disabled
   --  dialparties.agi: DbSet CALLTRACE/212 to 914426nnnn
 dialparties.agi: Dial string is SIP/212|15|tr
   -- AGI Script dialparties.agi completed, returning 0
   -- Executing Dial("Zap/1-1", "SIP/212|15|tr") in new stack
   -- Called 212
   -- SIP/212-20f2 is ringing
   -- SIP/212-20f2 answered Zap/1-1
   -- Started music on hold, class 'default', on Zap/1-1
   -- Executing Macro("SIP/212-3853", "dialout-trunk|2|1914304nnnn|")
in new stack
   -- Executing GotoIf("SIP/212-3853", "1?3:2)") in new stack
   -- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("SIP/212-3853", "record-enable|212|OUT") in new stack
   -- Executing GotoIf("SIP/212-3853", "0 > 0?2:4") in new stack
   -- Goto (macro-record-enable,s,4)
   -- Executing GotoIf("SIP/212-3853", "1?5:8") in new stack
   -- Goto (macro-record-enable,s,5)
   -- Executing DBget("SIP/212-3853", "RecEnable=RECORD-OUT/212") in
new stack
   -- DBget: varname=RecEnable, family=RECORD-OUT, key=212
   -- DBget: Value not found in database.
   -- Executing SetVar("SIP/212-3853",
"CALLFILENAME=OUT212-20060803-144039-1154630439.24779") in new stack
   -- Executing Goto("SIP/212-3853", "s|14") in new stack
   -- Goto (macro-record-enable,s,14)
   -- Executing GotoIf("SIP/212-3853", "0?15:99") in new stack
   -- Goto (macro-record-enable,s,99)
   -- Executing NoOp("SIP/212-3853", "NO RECORDING NEEDED") in new stack
   -- Executing GotoIf("SIP/212-3853", "1?7") in new stack
   -- Goto (macro-dialout-trunk,s,7)
   -- Executing GotoIf("SIP/212-3853", "0?9") in new stack
   -- Executing SetCallerID("SIP/212-3853", "914-949-5500") in new stack
   -- Executing SetGroup("SIP/212-3853", "OUT_2") in new stack
   -- Executing CheckGroup("SIP/212-3853", "") in new stack
   -- Executing SetVar("SIP/212-3853", "DIAL_NUMBER=1914304nnnn") in
new stack
   -- Executing SetVar("SIP/212-3853", "DIAL_TRUNK=2") in new stack
   -- Executing AGI("SIP/212-3853", "fixlocalprefix") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
 fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
   -- AGI Script fixlocalprefix completed, returning 0
   -- Executing SetVar("SIP/212-3853", "OUTNUM=1914304nnnn") in new stack
   -- Executing Cut("SIP/212-3853", "custom=OUT_2|:|1") in new stack
   -- Executing GotoIf("SIP/212-3853", "0?19") in new stack
   -- Executing Dial("SIP/212-3853", "ZAP/g1/1914304nnnn") in new stack
   -- Called g1/1914304nnnn
   -- Zap/2-1 is ringing
   -- Stopped music on hold on Zap/1-1
 == Spawn extension (macro-dial, s, 10) exited non-zero on
'SIP/212-3853<ZOMBIE>' in macro 'dial'
 == Spawn extension (macro-exten-vm, s, 3) exited non-zero on
'SIP/212-3853<ZOMBIE>' in macro 'exten-vm'
 == Spawn extension (ext-local, 212, 1) exited non-zero on
'SIP/212-3853<ZOMBIE>'
 == Parsing '/etc/asterisk/manager.conf': Found
 == Manager 'admin' logged on from 10.0.0.200
 == Manager 'admin' logged off from 10.0.0.200


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to