3 like 0 dislike
62 views
If call comes into my asterisk and I want it to route to some specific SIP peer and in case if that SIP peer is Offline/Unreachable so can we route the call to another extension or send it to voicemail
in Education & Reference by (1.3k points) | 62 views

1 Answer

2 like 0 dislike
[Context]
exten => _X.,1,Log(NOTICE,Dial Status of ${EXTEN}: ${SIPPEER(${EXTEN},status)})
exten => _X.,n,GotoIf($["${SIPPEER(${EXTEN},status):0:3}"="OK "]?ok1:NEWCONTEXT)
exten => _X.,n(ok1),Log(NOTICE,Calling number is available)
exten => _X.,n,Dial(SIP/${EXTEN},50)
exten => _X.,n,Hangup()
exten => _X.,n(NEWCONTEXT),Goto(NEWCONTEXT,${EXTEN},1)
exten => _X.,n,Hangup()


[NEWCONTEXT]
exten => _X.,1,voicemail(${EXTEN}@Context)
by

Related questions

1 like 0 dislike
1 answer
0 like 0 dislike
3 answers
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
2 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 30, 2014 in Computers & Internet by Yogi (180 points) | 94 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,202 questions
1,348 answers
553 comments
1,994 users