This works fine if i dial into asterisk using my mobile phone,I see “Alun Mobile” flash up on my screen.
If i dial in from any other phone,then asterisk answers,shows no caller display,then hangsup after 10 seconds.
I need to add some extra rules but i’m not sure of how to do it.
I think i need to use the “GotoIf” command,but i’m unsure of the usage.
I want any other number just to display the number and still ring the same extensions.
[quote]
[inbound]
exten => 6458155,1,Answer
exten => 6458155/07929902xxx,2,Set(CALLERID(name)=Alun Mobile)
exten => 6458155,3,Dial(SIP/alun&SIP/mythphone,r) [/quote]
Im using something like this for about 30 numbers and its working good
You have
extens => EXT,priority,action
there is a mess with priority, You have 1,2,3 for Your cell number
but 1,3 for others… so there is a hole.
Try using ‘s’ exten or ‘n’ priority
You have here:
context = inbound
extension(A) = 6458155
extension(B) = 6458155/07929902xxx
for extension(A) there is priorities 1 and 3
exten => 6458155,1,Answer
exten => 6458155,3,Dial(SIP/alun&SIP/mythphone,r)
there is no prority 2 (i called it a hole)
taht what i kno Asterisk work like this:
we are in context [inbound]
what extension ? - 6458155
execute priority 1 - ok = Answer
execute next pririty - 2 - no such priority = hangup
asterisk will not reach pririty 3 - Dial(SIP/…)
if You change extension ‘6458155’ to ‘s’, then it will work like
we are in context …
extension s (first in line)
s/number1 - does callerid = number ? =yes (do what must be done) / no (skip)
s/nuber 2 …
s/nuber N
s (callerid number not specified) do whatever You want
Note: prorities still apply in s/number ans s extensions
You don’t have to use ‘s’ extension. Asterisk can check CALLERID as rusty post and jump using goto()
OK, Thanks for taking the time to explain it all to me.
It’s all starting to make sense now.
I spent the whole day yesterday experimenting with it.
I have it setup the way rusty has shown it.
I even managed to configure a basic voicemail setup!