[asterisk-users] Calls to sip extensions not defined
Stefan Schmidt
sst at sil.at
Sat Mar 22 18:16:38 CDT 2008
hello,
why do you build a realtime configuration loading the sip users and
extensions from a database?
if you want to use the username as extension it would be quit simple
looking like this:
exten => _X.,1,Select user from DB which has ${EXTEN}
exten => _X.n,GotoIf(Uservar = ""?nouser)
exten => _X.n,Dial(SIP/${EXTEN} or userval from db,60)
exten => _X.,n,Voicemail(${EXTEN} or userval from db)
exten => _X.,n,Hangup
exten => _X.,n(nouser),Playback(no_user_found)
exten => _X.,hangup
i am using this system on several servers serving more than 7000 active
users which more functionality than voicemail and sip dialing.
if you are interested in this solution give me a mail and i could send
you a copy of the config files and db structure you need.
best regards
steve smith
R. B. schrieb:
> Thanks Steve, your solution works but I am looking for is something more
> general. The example I posted is a simplified one and on the real one I
> am using extensions on the 5XXX scenario so I can have 5000 to 5999
> range. You answer for just 10 extension is great but for a 1000 and when
> not all extensions on the 5XXX are set up then it is not optimal to
> define each extension manually or add exceptions manually and I was
> looking to see if there a command or state that I could use like
> DIALSTATUS, etc to see if the dialled extension doesn't exist and then
> jump to the invalid prompt.
>
> Regards
> Richard
>
More information about the asterisk-users
mailing list