Open beatific-angel opened 1 year ago
Typically these kinds of features are done with feature codes on you Asterisk Dialplan. The Browser phone can be used to dial such feature code, and listen to a conversation, just like a normal handset could.
so those features are not in here, but you can do this ? right?
I can make dialplan for whisper, barge and listen. but I dont know how to connect the dialplan with webphone.
this is dialplan for whisper, barge and listen. [ext-local-custom]
;listen exten => *222x.#,1,Macro(user-callerid,) exten => 222x.#,n,Answer exten => _222x.#,n,NoCDR exten => *222x.#,n,Wait(1) exten => 222x.#,n,ChanSpy(sip/${EXTEN:4},q) exten => _222x.#,n,Hangup
;whisper exten => *223x.#,1,Macro(user-callerid,) exten => 223x.#,n,Answer exten => _223x.#,n,NoCDR exten => *223x.#,n,Wait(1) exten => 223x.#,n,ChanSpy(sip/${EXTEN:4},qw) exten => _223x.#,n,Hangup
;barge exten => *224x.#,1,Macro(user-callerid,) exten => 224x.#,n,Answer exten => _224x.#,n,NoCDR exten => *224x.#,n,Wait(1) exten => 224x.#,n,ChanSpy(SIP/${EXTEN:4},qB) exten => _224x.#,n,Hangup
This really is an Asterisk Dial-plan question. Based on the dial-plan provided, it looks like your feature codes are *222
for listen, *223
for whisper and *224
for barge.
The way to use them is to simply dial 222 followed by the extension you want to listen to, so ```222100``` would listen to extension 100, and all the combinations etc.
ofc , above my dialplan is asterisk dial plan. but please understand my question. My mean, how to connect call to the ongoing call in web phone?
please check this link. https://d1qcxhd2x8x3pn.cloudfront.net/dashboards-drive-1588323311.mp4
In the video, if I request call, it will connect to the ongoing call. Maybe my explanation is not good. Anyway please check the video.
In the video, if I request call, it will connect to the ongoing call.
No, this is what I looks like, but whats happening behind the scene, is that the dialer client they provide is making a simple call just like any other call, except that the number its calling is a special feature code, and by dialing the feature code, your call is "connected to the ongoing call".
As i said before, just dial the number from the Browser Phone *222100
. This will "connect" your browser phone to the ongoing call that the person on extension 100 is on. If you want to connect to extension 200, then dial *222200, and so on.
really? ok. will try soon.
Asterisk is a B2BUA (Back to Back User Agent), this means all signalling and media all goes "through" the server. It allows things like this to be possible. So long as you don't re-invite, or use direct media.
I tried. via asterisk log, I can see chanspy work. but I can not listen any voices in the spy channel and I can not say to anyone. why these problems occurred? I am not sure. volume or other problem?
First make sure a normal audio call works between two webrtc users. Then make sure the spy features work "from" a regular desk phone, or non-webrtc phone (as in the device you are spying with).
Confirmed these two things work.
just I checked, web rtc phone vs web rtc phone call works correctly. but I can not still use whisper and barge feature.
I tested web phone vs soft phone call. in this case, I can hear audio. but if I try to speak, I can hear strange changed voice. in this case, two side are both extension (not outbound number) and then I hooked soft phone. when I hook web phone, I can not hear audio.
and soft phone and outbound call tested. in this case, i can hear audio in the channel. so i think this problem is related to webrtc. i think our webrtc phone have a little issues related to these features.
Can you try using only ulaw or alaw as the codec only on all extensions including the webrtc ones.
I am already using the ulaw, and alaw .
webphone is very nice to using. one question The webphone have whisper, listen, barge, break features?