<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Arial">hi,<br>
<br>
u mentioned the below<br>
First, I've added a new parameter to the B's directory entry
called "chk_ring" which has the value of B.<br>
<br>
do u hardcode this in directory entry xml or is there a way to
dynamically assign it in dialplan because the issue im having is
im using blind registration so my extension entries dont exist
in directory at the start<br>
<br>
<br>
<br>
</font></font>
<div class="moz-signature">
<style>
body {
font-family: Verdana, sans-serif;
font-size: 0.8em;
color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin:0in; margin-bottom:.0001pt; }
p.footr { font-family: "Trebuchet MS", Verdana, sans-serif; margin:0in; margin-bottom:.0001pt; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
width: 100%;
height: 1px;
background: #ccc;
border: 0;
}
</style>Regards,<br>
Bipin<br>
<br>
<br>
<hr>
</div>
<div class="moz-cite-prefix">-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] different ringtone when called
party is already busy on another call<br>
From: Yehavi Bourvine <a class="moz-txt-link-rfc2396E" href="mailto:yehavi.bourvine@gmail.com"><yehavi.bourvine@gmail.com></a><br>
To: FreeSWITCH Users Help
<a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org></a><br>
Date: 12/23/2016, 2:45:36 PM<br>
</div>
<blockquote
cite="mid:CAAtWKeFLYFuEKX_6u8=n5FM08yxZiaKeKSbvT+dA84oFPngePQ@mail.gmail.com"
type="cite">
<div dir="rtl">
<div dir="ltr">These two lines are preparations for the next
extension statement. That;s what they do:<br>
<br>
<span class="gmail-im">
<div> <action application="set"
data="chk_number=${user_data($<wbr>{destination_number}@${domain_<wbr>name}
var chk_ring)}" inline="true"/><br>
</div>
<div>(using the previous terminology) This is called when
you dial to extension B and has to know which extension A
is "connected" to it. Extensipon B has a variable named
"chk_ring" which holds the value of A. That's way you can
test whether A is busy while calling B.<br>
<br>
<span class="gmail-im"> <action
application="set" data="OrigDest=${destination_<wbr>number}"
--- Save the original number<br>
</span></div>
<div><span class="gmail-im">When you call the limit
application (at a later stage), if the destination is
busy, it changes the destination number to "</span><br>
ChangeRingBack", thus you have to save the original
destination.<br>
<br>
</div>
<div>Reminder: These are snippets from my config which I
changed slightly to be readable outside my context; they
are not tested.<br>
</div>
<div> __Yehavi:<br>
</div>
</span><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div dir="ltr">2016-12-22 18:27 GMT+02:00 Bipin Patel <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>></span>:</div>
<blockquote class="gmail_quote" style="margin:0
.8ex;border-left:1px #ccc solid;border-right:1px #ccc
solid;padding-left:1ex;padding-right:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font size="-1"><font
face="Arial">one thing i dont understand is what do
these 2 lines actually do<br>
<br>
</font></font><span class=""><br>
<div> <action application="set"
data="chk_number=${user_data($<wbr>{destination_number}@${domain_<wbr>name}
var chk_ring)}" inline="true"/></div>
<div> <action application="set"
data="OrigDest=${destination_<wbr>number}" --- Save
the original number<br>
<br>
<br>
</div>
</span>
<div class="m_1433622702656957038moz-signature"> Regards,<br>
Bipin<br>
<br>
<br>
<hr> </div>
<div class="m_1433622702656957038moz-cite-prefix"><span
class="">-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] different ringtone
when called party is already busy on another call<br>
From: Yehavi Bourvine <a moz-do-not-send="true"
class="m_1433622702656957038moz-txt-link-rfc2396E"
href="mailto:yehavi.bourvine@gmail.com"
target="_blank"><yehavi.bourvine@gmail.com></a><br>
To: FreeSWITCH Users Help <a moz-do-not-send="true"
class="m_1433622702656957038moz-txt-link-rfc2396E"
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank"><freeswitch-users@lists.<wbr>freeswitch.org></a><br>
</span>
<div>
<div class="h5"> Date: 12/22/2016, 8:02:39 PM<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="rtl">
<div dir="ltr">You can use the DB backend for
that. mod_limit is actually doing that
counting...</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"> __Yehavi:</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div dir="ltr">2016-12-22 17:58 GMT+02:00 Bipin
Patel <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bipin@xbipin.com"
target="_blank">bipin@xbipin.com</a>></span>:</div>
<blockquote class="gmail_quote" style="margin:0
.8ex;border-left:1px #ccc
solid;border-right:1px #ccc
solid;padding-left:1ex;padding-right:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font
size="-1"><font face="Arial">hi,<br>
<br>
thanks for the reply. I forgot to
mention i use blind registration so i
specifically dont have directory entries
so any other way to implement it with
that, meanwhile ill try to wrap my head
around the dialplan u provided.<br>
<br>
what i was thinking was suppose if any
extension places a call then increment
some counter and when that call ends
reset it to 0 so suppose if hes in a
call and counter is at 1 then any new
calls placed by anyone else check the
counter for the first ext if thats
called, if 1 then different ringback and
if 0 then normal ringback<br>
<br>
<br>
</font></font>
<div
class="m_1433622702656957038m_-8441486095020094705moz-signature">
Regards,<br>
Bipin<br>
<br>
<br>
<hr> </div>
<div
class="m_1433622702656957038m_-8441486095020094705moz-cite-prefix"><span>--------
Original Message --------<br>
Subject: Re: [Freeswitch-users]
different ringtone when called party is
already busy on another call<br>
From: Yehavi Bourvine <a
moz-do-not-send="true"
class="m_1433622702656957038m_-8441486095020094705moz-txt-link-rfc2396E"
href="mailto:yehavi.bourvine@gmail.com" target="_blank"><yehavi.bourvine@gmail.com></a><br>
To: FreeSWITCH Users Help <a
moz-do-not-send="true"
class="m_1433622702656957038m_-8441486095020094705moz-txt-link-rfc2396E"
href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"><freeswitch-users@lists.freesw<wbr>itch.org></a><br>
</span>
<div>
<div class="m_1433622702656957038h5">
Date: 12/22/2016, 4:57:29 PM<br>
</div>
</div>
</div>
<div>
<div class="m_1433622702656957038h5">
<blockquote type="cite">
<div dir="rtl">
<div dir="ltr">Hi,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"> To make it easier,
let's call the main extension A,
and the secondary extension B.
When someone calls B and A is
busy, you want the "call-waiting"
signal to be heard.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Note: I've taken
snippets from my dial plan and
changed them in order to readable
without my context; hence, they
might not work on first attempt.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">First, I've added a
new parameter to the B's directory
entry called "chk_ring" which has
the value of B.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">First, you have to
tell mod_limit to track calls
to/from the main extension (I am
doing that for all extensions)
with the following commands before
calling the bridge application:</div>
<div dir="ltr"> </div>
<div dir="ltr">
<div>
<div> <action
application="limit" data="hash
max_calls ${dest} -1
HANGUP_USER_BUSY" /></div>
</div>
<div>This causes mod_limit to
track the calls to that
extension.</div>
<div><br>
</div>
<div>BTW, it is adviseable to add
also the following setting in
order to count correctly when
doing call transfer:</div>
<div><action application="set"
data="limit_ignore_transfer=fa<wbr>lse"
/><br>
</div>
<div><br>
</div>
<div>Next, during a new call
process you have to check the
limit of A extension with the
following:</div>
<div><br>
</div>
<div>
<div>
<div><extension
name="Intercom"
continue="true"></div>
<div> <condition break =
"never" ></div>
<div> <action
application="set"
data="chk_number=${user_data($<wbr>{destination_number}@${domain_<wbr>name}
var chk_ring)}"
inline="true"/></div>
<div>
<action application="set"
data="OrigDest=${destination_n<wbr>umber}" --- Save the original number</div>
<div>
<action
application="limit"
data="hash max_calls
${chk_ring} 1
ChangeRingBack" /><br>
</div>
<div> </condition></div>
<div></extension></div>
</div>
</div>
<div><br>
</div>
<div>And then add a ChangeRingBack
extension:</div>
<div>
<div>
<div><extension
name="ChangeRingBack"
continue="true"></div>
<div> <span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px"><condition
field="destination_number"
expression="^limit_exceeded$"></span></div>
<div><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px">
</span><font
face="monospace, courier"
color="#000000"><span
style="font-size:12.8px"> <action
application="set"
data="ringback=${callwait-ring<wbr>}"
/></span></font></div>
<div> --- Do the bridge.</div>
<div> </condition></div>
<div></extension></div>
</div>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div dir="ltr">2016-12-22 7:54
GMT+02:00 Bipin Patel <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bipin@xbipin.com"
target="_blank">bipin@xbipin.com</a>></span>:</div>
<blockquote class="gmail_quote"
style="margin:0
.8ex;border-left:1px #ccc
solid;border-right:1px #ccc
solid;padding-left:1ex;padding-right:1ex">
<div bgcolor="#FFFFFF"
text="#000000"> <font
size="-1"><font face="Arial">hi,<br>
<br>
this is exactly what im
trying to achieve, i want
to be able to check if
called party is busy on
another call then generate
a different ringback than
the normal one i use if
not busy. Can u kindly
provide a dialplan example
coz im getting confused on
how to track if the ext is
busy as well as increment
and decrement the limit
value?<br>
<br>
<br>
</font></font>
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639moz-signature">
Regards,<br>
Bipin<br>
<br>
<br>
<hr> </div>
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639moz-cite-prefix"><span>--------
Original Message --------<br>
Subject: Re:
[Freeswitch-users]
different ringtone when
called party is already
busy on another call<br>
</span><span> From: Yehavi
Bourvine <a
moz-do-not-send="true"
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639moz-txt-link-rfc2396E"
href="mailto:yehavi.bourvine@gmail.com" target="_blank"><yehavi.bourvine@gmail.com></a><br>
To: FreeSWITCH Users Help
<a moz-do-not-send="true"
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639moz-txt-link-rfc2396E"
href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"><freeswitch-users@lists.freesw<wbr>itch.org></a><br>
</span>
<div>
<div
class="m_1433622702656957038m_-8441486095020094705h5">
Date: 12/22/2016,
8:59:35 AM<br>
</div>
</div>
</div>
<div>
<div
class="m_1433622702656957038m_-8441486095020094705h5">
<blockquote type="cite">
<div dir="rtl">
<div dir="ltr">What I
am doing in a
similar case is:</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">- I am
using the mod_limit
to know which
extension is in a
call and which is
free.</div>
<div dir="ltr">- If a
call is made to a
busy extension
(which has the call
waiting feature)
then I play a
different ring-back
tone with the
command:</div>
<div dir="ltr">
<action
application="set"
data="ringback=${callwait-ring<wbr>}"
/></div>
<div dir="ltr">- In
your case, the busy
extension is
different than the
one being called;
thus, you have to
add to the extension
variables/parameters
a new parameter
which specifies the
other extension
number; then you
have to call
mod_limit for both
extensions, and play
the call-wait
ringback if one of
them is busy.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">
Regards, __Yehavi:</div>
</div>
<div class="gmail_extra"><br>
<div
class="gmail_quote">
<div dir="ltr">2016-12-21
13:59 GMT+02:00
Bipin Patel <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>></span>:</div>
<blockquote
class="gmail_quote"
style="margin:0 0
0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
bgcolor="#FFFFFF"
text="#000000">
<font size="-1"><font
face="Arial">hi,<br>
<br>
its a multi
line phone so
i guess B is
accepting the
call like a
normal call
which it
should with
call waiting
enabled on it,
if it sent
busy then A
would simply
hear busy tone
which i dont
want, i want
to make A hear
a different
ringtone while
call is
waiting so A
can know using
the tone that
B is on
another call
and might or
might not
answer<br>
<br>
<br>
</font></font>
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272moz-signature">
Regards,<br>
Bipin<br>
<br>
<br>
<hr> </div>
<div>
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639h5">
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272moz-cite-prefix">--------
Original
Message
--------<br>
Subject: Re:
[Freeswitch-users]
different
ringtone when
called party
is already
busy on
another call<br>
From: Lợi Đặng
<a
moz-do-not-send="true"
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272moz-txt-link-rfc2396E"
href="mailto:loi.dangthanh@gmail.com" target="_blank"><loi.dangthanh@gmail.com></a><br>
To: FreeSWITCH
Users Help <a
moz-do-not-send="true"
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272moz-txt-link-rfc2396E"
href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"><freeswitch-users@lists.freesw<wbr>itch.org></a><br>
Date:
12/21/2016,
2:22:11 PM<br>
</div>
<blockquote
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>guess It
is the B's
function, B is
able to put
the call in
waiting
instead of
respond 486 to
FS, when B is
already a call
with another
party.<br>
</div>
in this case,
I'm afraid FS
will have no
idea about
what is
happening in
B. <br>
</div>
what branch B
is? did you
try B's role
with another
phone?<br>
<br>
</div>
rgds,<br>
</div>
<div
class="gmail_extra"><br
clear="all">
<div>
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>Loi Dang
Thanh<br>
</div>
Phone :
+84.1224.735.448<br>
</div>
Email : <a
moz-do-not-send="true"
href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br>
</div>
</div>
</div>
</div>
</div>
<br>
<div
class="gmail_quote">On
Wed, Dec 21,
2016 at 3:40
PM, Bipin
Patel <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div
bgcolor="#FFFFFF"
text="#000000">
hi,<br>
<br>
i have been
using FS in
product on
many raspberry
pi's and other
machines in
PBX
environment
and everything
works well
except im
stuck with a
requirement
which i cant
seem to be
able to get
over.<br>
<br>
party A calls
party B but
party B is
already in
call with
party C, so
party A gets
normal
ringtone and
party B gets
call waiting
beeps, how do
we detect in
FS that party
B is already
busy on
another call
and generate a
different
ringtone for
party A which
he hears so
indirectly
party A knows
that party B
is already on
another call?<span
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272HOEnZb"><font
color="#888888"><br>
<br>
<br>
<div
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272m_6132622689648418768moz-signature">--
<br>
Regards,<br>
Bipin<br>
<br>
<br>
<hr> </div>
</font></span></div>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional
FreeSWITCH
Consulting
Services:<br>
<a
moz-do-not-send="true"
href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a
moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" rel="noreferrer"
target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official
FreeSWITCH
Sites<br>
<a
moz-do-not-send="true"
href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a
moz-do-not-send="true"
href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a
moz-do-not-send="true"
href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a
moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a
moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer"
target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a
moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a
moz-do-not-send="true"
href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639m_-1073053527446265272mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</div>
</div>
</div>
<br>
</blockquote>
</div>
</div>
<br>
<fieldset
class="m_1433622702656957038m_-8441486095020094705m_3242238943564535639mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</div>
</div>
</div>
<br>
______________________________<wbr>______________________________<wbr>_____________</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<br>
</blockquote>
<br>
</div>
</div>
</div>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" rel="noreferrer"
target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://confluence.freeswitch.org" rel="noreferrer"
target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>