How to simulate an extension?

Hi,

i’m an absolut asterisk-newbie but i think, i get good along with asterisk up to now :smile: Now i’ve an problem and hope, some one have the rescuing anchor for me.

I’ve the following situation: I’ve an AVM Fritz!Box which is connected to my ISDN Line and to my SIP-Provider. The FB is configured, that an parallel-call via SIP is initiated to my asterisk-server if someone calls me via ISDN or SIP-Line so that my PDA with IAX-Client can receive the incoming-calls too.

Now i’ve the following problem: If my PDA isn’t registered to asterisk, the asterisk server answer the calls directly with an “Good bye” and disconnect the call. It would be nice, if the voicebox on the asterisk would wait the given time like the IAX-Client is connected before it react. I think, this problem could be solved if an “virtual” extension is registered to the asterisk server - but: how can i do this?

Greets
prodigy7

post the context from extensions.conf where the calls enters Asterisk.

extensions.conf

[code][general]
static=yes
writeprotect=no

[1und1_out]
exten => _0.,1,Dial,SIP/${EXTEN}@496144xxxxxx|45|r

[incoming]
exten => 496144xxxxxx,1,Dial(IAX2/06144xxxxxx,25)
exten => 496144xxxxxx,2,VoiceMail(u06144xxxxxx)
exten => 496144xxxxxx,3,PlayBack(vm-goodbye)
exten => 496144xxxxxx,4,wait(2)
exten => 496144xxxxxx,5,HangUp()

[default]
include => 1und1_out
include => incoming[/code]

something like ?

[incoming] exten => 496144XXXXXX,1,Dial(IAX2/06144XXXXXX,25) exten => 496144XXXXXX,2,GotoIf($[${DIALSTATUS} = "CHANUNAVAIL"]?3:4) exten => 496144XXXXXX,3,Wait(25) exten => 496144XXXXXX,4,VoiceMail(u06144XXXXXX) exten => 496144XXXXXX,5,PlayBack(vm-goodbye) exten => 496144XXXXXX,6,Wait(2) exten => 496144XXXXXX,7,HangUp()

[quote=“baconbuttie”]something like ?[/quote]nearly :smile:

I do this modification but i get this message:

Asterisk continuing the redirect to the mailbox directly… an free sign (ringing) doesn’t appear.

worked here when i shut down an X-Lite client. after the Dial() add a priority with NoOp(${DIALSTATUS}) and post what the console reports when you dial in.

I’d done now following:

exten => 496144xxxxxx,1,NoOp(${DIALSTATUS}) exten => 496144xxxxxx,2,Dial(IAX2/06144xxxxxx,25) exten => 496144xxxxxx,3,GotoIf($[${DIALSTATUS} = "CHANUNAVAIL"]?4:5) exten => 496144xxxxxx,4,wait(25) exten => 496144xxxxxx,5,VoiceMail(u06144xxxxxx) exten => 496144xxxxxx,6,PlayBack(vm-goodbye) exten => 496144xxxxxx,7,wait(2) exten => 496144xxxxxx,8,HangUp() But I get no message from NoOp … I’d enabled the

line in logger.conf and restart asterisk, but no success

no, you need to add the NoOp line after the Dial() … i want to see what Dial() sets the value of ${DIALSTATUS} to when the channel can’t be created.

The following does not work for me:exten => 496144xxxxxx,1,Dial(IAX2/06144xxxxxx,25) exten => 496144xxxxxx,2,NoOp(Dial Status:${DIALSTATUS}) exten => 496144xxxxxx,3,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?4:5) exten => 496144xxxxxx,4,wait(27) exten => 496144xxxxxx,5,VoiceMail(u06144xxxxxx) exten => 496144xxxxxx,6,PlayBack(vm-goodbye) exten => 496144xxxxxx,7,wait(2) exten => 496144xxxxxx,8,HangUp()

Edit: It works “now” and “not” for me :smile:

works as intended here. are you using “x” to make your real number, or to pattern match ?

xxxxxx hides only my real number.

HMPF ! “not” should been “now” … my bad english … :smile: