A
A
aster1232015-11-11 14:32:51
Asterisk
aster123, 2015-11-11 14:32:51

Line Busy Notification + Switching to Second Line?

1. There is a Linksys PAP2T with a connected phone. During a conversation, a call comes in on the second line, how to switch to the second call by putting the first one on hold, and then return back?
2 Subscriber A is talking to subscriber B, subscriber C is calling subscriber A, how to notify subscriber C that subscriber A is talking, and not just not wanting to pick up the phone? Added to extensions_custom.conf

[macro-dialout-one-predial-hook]
exten => s,1,Noop(DEVICE STATE - ${DEVICE_STATE(${DSTRING})})
exten => s,n,ExecIf($["${DEVICE_STATE(${DSTRING})}" = "INUSE"]?Playback(abonent_zanyat))
exten => s,n,ExecIf($["${DEVICE_STATE(${DSTRING})}" = "INUSE"]?Set(D_OPTIONS=Ttm))
exten => s,n,ExecIf($["${DEVICE_STATE(${DSTRING})}" = "RINGINUSE"]?Playback(abonent_zanyat))
exten => s,n,ExecIf($["${DEVICE_STATE(${DSTRING})}" = "RINGINUSE"]?Set(D_OPTIONS=Ttm))

But there is no notification. There is silence in the console, as if the macro is not being executed at all. I would be grateful for help.
Asterisk 11 freepbx 2.11.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor, 2015-11-12
@awsswa59

Five places where you posted it and where they tried to help you should seem to suggest clever thoughts.
And you seem to have been hinted at the forum - you can help someone who understands who stupidly copies from the Internet a direct road to a paid support.
Give back 500 rubles already = let them give you a lesson on how to watch logs and how to edit FreePBX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question