Medical call - to two participants number with announcements and transfer

Hello community, we need a medical call solution for our system. > see flow_chart.pdf

All works fine, but we cannot play announcement 2 if answer extern number 4000 (or 471 for testing)

We tested with various methods, it is certainly not difficult - but we are standing on the hose. :upside_down_face:

I hope it is understandable
Thank YOu
MfG Steffen









Please provide a call trace: https://sangomakb.atlassian.net/wiki/spaces/SS/pages/31162494/Providing+Great+Debug#Asterisk-Logs---Part-II

Not sure what your question is exactly, but when using ORIGINATE with FreePBX, it’s often better to use the freepbx dialplan internals with Local/xxxx@from-internal channels instead of PJSIP/xxx

Can we get the actual setup of FreePBX? What is happening when the call is sent to the PBX? What does the originate command or call file look like? Are you trying to dial both at the same time then bridge them together once announcements are played?

All we have here is snippets of dialplan and nothing to show how they are actually being used.

Hy and sorry for my late answer. I reading and try a lot of combinations.

The only thing I can’t get it, is the announcement after conversation assumption from the second participant?! ( is only directly call, thats is OK but i need the second announcement )

Is that possible at all or otherwise?

[amihatest1]
exten => _.,1,Answer()
exten => _.,n,Wait(1)
exten => _.,n,Set(CALLERID(name)=${CALLERID(num)}) ; Setzt den Anrufernamen auf die Anrufer-ID
exten => _.,n,Playback(cleveland) ; Erste Ansage für den Teilnehmer
;exten => _.,n,goto(from-dahdil,${EXTEN},1) ; TEST Ruft die Externe Nummer an
;exten => _.,n,Dial(Local/${EXTEN}@from-internal,${timeoutd}) ; TEST
;exten => _.,n,Dial(SIP/470) ; TEST Anruf an den Bereitschaftsdienst
;exten => _.,n,GotoIf($[“${DIALSTATUS}”=“ANSWER”]?bereitschaftsdienst-answered) ; TEST Überprüfen, ob der Bereitschaftsdienst den Anruf
;exten => _.,n,Playback(no) ; TEST Nachricht abspielen, wenn der Bereitschaftsdienst nicht antwortet
;exten => _.,n(bereitschaftsdienst-answered),Playback(brain) ; TEST Zweite Ansage für den Bereitschaftsdienst
;exten => _.,n,Wait(1) ; TEST
;exten => _.,n(startread),Playback(ent-target-attendant) ; TEST
;exten => _.,n,goto(from-dahdi,${EXTEN},1) ; TEST
;exten => _.,n,Playback(brian) ; TEST Zweite Ansage für den Bereitschaftsdienst
;exten => _.,n,GotoIf($[“${CHANNEL(state)}” = “Up”]?begin) ; TEST
;exten => _.,n,Goto(from-did-direct,470,1)
exten => _.,n,Dial(SIP/470)
exten => _.,n,Answer
exten => _.,n,Wait(1)
exten => _.,n(begin),Noop(Playing announcement Test_Ansage_3)
exten => _.,n,Playback(1-yes-2-no,noanswer)

LOG
https://pastebin.freepbx.org/view/f917a2b7

Is 470 supposed to have followme enabled?

This isn’t going to work the way you think it will work. What is the actual goal here? To play back a message to both parties when a call is answered?

yes FM is active - it this my problem … ?

To play back a message to both parties when a call is answered?

Yes, before the conversation is set up

The first announcement works, then the second participant is called (but he gets no announcement) and both can talk to each other

HMMM difficult ;(

flow_chart2

I think I don’t quite understand the expiry of the extensions_custom.conf

this is my idea:

the first number and the second number, i get out from HA Node-RED Flow

Then running context amihaxxx call first number, and than >> " goto(from-dahditxxxx " work off the second context

[amihatest]
exten => _.,1,Answer()
exten => _.,n,Wait(1)
exten => _.,n,Set(CALLERID(name)=${CALLERID(num)})
exten => _.,n,Playback(cleveland) ; erste TEST Ansage für den Bewohner
exten => _.,n,goto(from-dahditest,${EXTEN},1)

[from-dahditest]
exten => _.,n,Answer()
exten => _.,n,Wait(1)
exten => _.,n,Playback(alert) ; Zweite TEST Ansage für den Bereitschaftsdienst

Then you need to use the A option in the Dial() string which will play an announcement back per channel and each side can have their own announcement.

  • A(x:y) - Play an announcement to the called and/or calling parties, where x is the prompt to be played to the called party and y is the prompt to be played to the caller. The files may be different and will be played to each party simultaneously.

    • x - The file to play to the called party

    • y - The file to play to the calling party

WOWWWWW so easy OMG Thank You @BlazeStudios @lgaetz

it work´s

Detailed report follows

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.