Incoming calls to extension, not SIP device?

Hi

Newbie user, but loving Asterisk so far.

Have installed 1.4 on Ubuntu, set up two SIP provider accounts (primary one is gotalk in Australia) and have calls from outside in, inside out, and between extensions running just fine. No PSTN or IAX setups, just SIP.

What I’d LIKE to do is set up an incoming “extension” - not a SIP device - to receive inbound calls from the “outside”, make a welcome announcement, and to listen for an extension number.

Following Chapter 5 of the O’Reilly book, I’ve got this working from my SIP devices:

Linksys 942 is extension 721

in extensions.conf I have:

[incoming_calls]
exten => _X.,1,NoOp()
exten => _X.,n,Dial(SIP/721)

exten => 701,1,Answer()
exten => 701,n,Background(enter-ext-of-person)
exten => 701,n,WaitExten()

exten => 721,1,Dial(SIP/721,10)
exten => 721,n,Playback(vm-nobodyavail)
exten => 721,n,Hangup()

exten => 722,1,Dial(SIP/722,10)
exten => 722,n,Playback(vm-nobodyavail)
exten => 722,n,Hangup()

so that calls to my SIP provider (i.e. inbound) get sent to 721.

What I can’t get my head around is how to send “inbound” calls - from an outside number, not from my SIP extensions - to go to the “701” extension above.

I’ve tried Dial(SIP/701) and Goto(701)… without success.

Any assistance appreciated; I’ve worked through most of the things I need with the book - I have sip.conf working for two SIP providers… this last piece is just doing my head in.

Have a great day

Mark

[code]server2CLI> core show application goto
server2
CLI>
-= Info about application ‘Goto’ =-

[Synopsis]
Jump to a particular priority, extension, or context

[Description]
Goto([[context,]extension,]priority): This application will set the current[/code]

You’ve only specified the priority, and you don’t even have a priority 701.

Also, if you even thought it might be Dial(SIP/701) you need to re-read Chapter 5.

Got it - Dial(incoming,701,1) worked just fine.

Thanks, am re-reading every chapter, lots to learn :smile:

Mark

I’m sure you actually tested: Goto…

Sorry, meant Goto…typing at 5:30am :frowning: