Need an idea for In/Out switch

hi
I have a couple DID numbers which are coming to my Asterisk server. They are normally ringing on my home SIP-phones. I’m looking for way to implement simple In/Out switching, i.e. when I’m out of my home I want those numbers to be routed to my cell phone for example.
May be something like dialing “service” extension number and getting a voice menu or just a confirmation by a beep?

thanx!

Sure,
when you arrive in the office you dial a service number and the DID is forwared to your desk phone and just before you leave your office you dial another number and the DID is forwarded to your mobile phone.

Regards.

Marco Bruni

Perfect !
But can you give any configuration example??

thanx

[from-outside]
exten=>0575123444,1,Answer
exten=>0575123444,2,Playback(wait)
exten=>0575123444,3,Dial(${DESTINATION})
exten=>0575123444,4,Hangup

[from-inside]
exten=>101,1,Answer
exten=>101,2,Set(DESTINATION=SIP/700)
exten=>101,3,Playback(thanks)
exten=>101,4,Hangup

exten=>102,1,Answer
exten=>102,2,Set(DESTINATION=SIP/3330000111)
exten=>102,3,Playback(thanks)
exten=>102,4,Hangup

Let’s say 0575123444 is your number, when a call comes in it’s directed to the context “from-outside”, there a message telling something like “wait please…” is played, then number contained in the variable DESTINATION is called.
When you want to forward the incoming calls to your sip phone (SIP/700) just call from it the 101 extension, so DESTINATION will set to SIP/700, when you want to forward to your mobile phone, through your voip itsp (SIP/3330000111) just call 102 and DESTINATION will be SIP/33300001111; rememeber please: your office phone need to be able to use the context from-inside.
In place of sip channels you can use any channel * support.

Hope it helps.

Regards.

Marco Bruni

Thanks, Marco!
I will try it later.