Skip to main content

Inbound Route for Single Tenant

Posted by dozment on Sat, 03/08/2008

I just brought up a new server with single tenant PBXMgr, and I'm having trouble with inbound calling. The only route I have is the 's' extension, and I have it set to go to voicemail for testing.

Asterisk tells me this:

[Mar 8 14:21:36] NOTICE[21054]: chan_sip.c:13879 handle_request_invite: Call from '' to extension
'16785009896' rejected because extension not found.

What am I missing?


Submitted by eeman on Sat, 03/08/2008 Permalink

's' does not mean match anything. it matches calls that have no extension. you incoming call has an extension so you need to match on it directly or via a pattern.

exten => _X.

exten => 16785009896

exten => _1NXXNXXXXXX

all would be acceptable.

Submitted by dozment on Sun, 03/09/2008 Permalink

Thanks.

That's what I thought, but I'm still missing something.

From inbound.include:

exten => s,1,Set(DIALED_PUBLIC_NUMBER=${EXTEN})

exten => s,2,Set(DIALED_NUMBER=${EXTEN})

exten => s,3,GotoIf($["${OFFICE_OPEN_OVERRIDE}" != ""]?s|5)

exten => s,4,GotoIfTime(*|*|*|*?from-outside-s-tl-allhours|s|1)

exten => s,5,NoOp(${EXTEN})

exten => _1NXXNXXXXXX,1,Set(DIALED_PUBLIC_NUMBER=${EXTEN})

exten => _1NXXNXXXXXX,2,Set(DIALED_NUMBER=${EXTEN})

exten => _1NXXNXXXXXX,3,GotoIfTime(*|*|*|*?from-outside-_1NXXNXXXXXX-tl-allhours|s|1)

and from extensions.include:

[from-outside]

exten => _X.,1,Set(__INCOMINGCLI=${CALLERID(num)})

exten => _X.,2,Goto(from-outside-redir,${EXTEN},1)

exten => _+X.,1,Set(__INCOMINGCLI=${CALLERID(num)})

exten => _+X.,2,Goto(from-outside-redir,${EXTEN},1)

exten => s,1,Set(__INCOMINGCLI=${CALLERID(num)})

exten => s,2,Goto(from-outside-redir,${EXTEN},1)

And, it's giving me this:

[Mar 9 15:45:24] NOTICE[21054]: chan_sip.c:13879 handle_request_invite: Call from '' to extension '16785009896' rejected because extension not found.

I don't understand why it thinks the incoming call is from 'null' and going to the DID.

Submitted by thirdlane on Sun, 03/09/2008 Permalink

Hi Dan,

This does not look wrong, not sure what is hapenning. Can you tell me what is in inbound_actions.include? I assume that Asterisk was reloaded after you added the pattern.

Perhaps you should try adding the number explicitly rather than a pattern and see if that makes a difference.

In any case I'll try this on my box to see if anything may be generated incorrectly when patterns are used.

Also, I made a few changes to this part of the application in the upcoming release - you are welcome to test it - just let me know.

Submitted by dozment on Sun, 03/09/2008 Permalink

Hi, Alex!

I changed the inbound.include entries to:

exten => 16785009896,1,Set(DIALED_PUBLIC_NUMBER=${EXTEN})

exten => 16785009896,2,Set(DIALED_NUMBER=${EXTEN})

exten => 16785009896,3,GotoIfTime(*|*|*|*?from-outside-_1NXXNXXXXXX-tl-allhours|s|1)

...and restart asterisk. Same thing.

This is inbound_actions.include:

[from-outside-s-tl-allhours]

exten => s,1,Set(MOH=${DB(TL/MOH/default${TL_DASH}${tenant})})

exten => s,n,GotoIf($["${MOH}" = ""]?nomoh)

exten => s,n,SetMusicOnHold(${MOH})

exten => s,n(nomoh),Macro(tl-goto-userextension,354,)

[from-outside-_1NXXNXXXXXX-tl-allhours]

exten => s,1,Set(MOH=${DB(TL/MOH/default${TL_DASH}${tenant})})

exten => s,n,GotoIf($["${MOH}" = ""]?nomoh)

exten => s,n,SetMusicOnHold(${MOH})

exten => s,n(nomoh),Macro(tl-invalid)