Register Asterisk server as client and connect incoming call

Hi,

I was wondering, is it possible to give the Asterisk server it’s own extension? I want to call to that client (always), then the call must be set on hold. After that I want another mobile phone to also call to the asterisk client and then let asterisk connect the two incoming calls with each other.

Is this somehow possible with Asterisk? If yes, could you give me a hint in the right direction? Thanks in advance!

It’s possible. In a short and simplified example this would look like the following (assuming ext_in is reserved for “Asterisk’s extension” and mobile_in is reserved for the incoming mobile call):

[code][ext_in]
include => parkedcalls
exten => 100,1,Answer()
exten => 100,n,Set(PARKINGEXTEN=701)
exten => 100,n,Park()
exten => 100,n,Hangup()

[mobile_in]
include => parkedcalls
exten => 101,1,Answer()
exten => 101,n,ParkedCall(701)
[/code]

Thanks abw1oim, it was a lot easier then I thought. It works fine!
Going to fine-tune it now.