<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Added the majority of the dialplan... It complicated but has been working fine since 2010 except for 1 little issue. I tried to keep the question simple but... Here is what happens:<div><br></div><div>1. Incoming call, I set early media "Hi so and so..." followed by us-ring.</div><div>2. Bridge the call to internal group A rings for 17 seconds, if time out:</div><div>3. Internal group B rings for 1 second, same phones but different extension on them which causes a different ring that let's us know we are about to call cellphones.</div><div>4. Bridge call to internal phones again and 2 cell phones. If time out:</div><div>5. Play message and go to voicemail.</div><div><br></div><div>The problem is step 3. If the phone is picked up right in the 1 second the call is missed and the other phones keep ringing. I thought to try to combine step 2 and 3 into a single bridge command it may work. But... in another post I just made I realized it would be solved if I could just ring users/group without bridging the call that would solve the issues and be better. Have not found anything on the wiki yet.</div><div><br></div><div>BTW, the reason for the reset of the early media us-ring is if I don't do it the caller hears the first second of the Hi message. You can't put ringback into the bridge dialstring (I tried) I have to keep the 2 steps separate, which is why now I would just like to figure out how to dial without bridging but wonder what would happen when call is picked up during then.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>extension name=<span style="color: #9431c0">"xxphone"</span><span style="color: #b72800">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>condition field=<span style="color: #9431c0">"destination_number"</span> expression=<span style="color: #9431c0">"^2920$"</span><span style="color: #b72800">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- Next lines allow control after bridge timeout and hangup after bridge --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"hangup_after_bridge=true"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"continue_on_fail=true"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="color: #b72800"><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- While ringing inside caller will hear "hi name" then standard ring --><span style="color: #000000"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"set"<span style="color: #000000"> data=</span>"ringback=file_string://${xxsounds}hi-long.wav!${sayname}!tone_stream://${us-ring};loops=-1"<span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- ring home extensions only for ## seconds --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"bridge"<span style="color: #000000"> data=</span>"[originate_timeout=17]group/home@${domain_name}"<span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- ring different extension once so we know we're about to go to the second stage --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- ringback must be reset otherwise caller will hear a first second of previous early media for this 1 ring --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><action application="set" data="ringback=${us-ring}"/></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span class="Apple-style-span" style="color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"bridge"<span style="color: #000000"> data=</span>"[originate_timeout=1,ringback=${us-ring}]group/MGT@${domain_name}"<span style="color: #b72800">/></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span class="Apple-style-span" style="color: rgb(148, 49, 192); "><span style="color: #b72800"><br></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- Say we are keep trying.... and setup so they hear music while ringing a second time--></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><!-- Using mod_file_string we can keep the phones ringing while playing sounds! --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"set"<span style="color: #000000"> data=</span>"ringback=file_string://${xxsounds}hold_on.wav!${sayname}!${xxsounds}we_trying_please_hold.wav!local_stream://moh"<span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- this is needed to allow call_timeout to work after bridging to a gateway --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"ignore_early_media=true"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- ring home extensions +cell phone for ## seconds NOTE THE NEXT 2 LINES DID NOT WORK TO SET TIMEOUT --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- NOTE: The use of :_: invokes enterprise syntax to ring simoultaneously! ATT takes 8-10 rings before cell phone rings! --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- DIAL_GATEWAY is set in the public folder dialplans --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"bridge"<span style="color: #000000"> data=</span>"<originate_timeout=23,origination_caller_id_number=${caller_id_number},origination_caller_id_name=${caller_id_name}>group/home@${domain_name}:_:sofia/gateway/${dial_gateway}/19163334444:_:sofia/gateway/${dial_gateway}/19161112222"<span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- Timeout/No answer go to voicemail --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!--action application="playback" data="${xxsounds}leave_a_message.wav"/--></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"playback"<span style="color: #000000"> data=</span>"file_string://${xxsounds}please_leave_a_message.wav!//${sayname}"<span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"answer"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- Next line removes default greeting, we already played one above--></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"skip_greeting=true"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"voicemail"<span style="color: #000000"> data=</span>"default ${domain_name} 100"<span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"></</span>condition<span style="color: #b72800">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"></</span>extension<span style="color: #b72800">></span></div></div><div><span style="color: #b72800"><br></span></div><div><div>On Apr 4, 2012, at 2:33 PM, Michael Collins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">What's the plain language description of what you're trying to do? I think we're all a bit confused about exactly which problem you're attempting to solve. A plain language description (without any telephonese) will definitely get us all on the same page. :)<br>
<br>Thanks,<br>MC<br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 1:21 PM, Mario G <span dir="ltr"><<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<div style="word-wrap:break-word">I tried putting the ringback into a bridge command - no effect, I also tried adding bridge_early_media to the bridge - no effect. The problem is when the call is picked during the the second bridge which is used to create a different ring on the extensions (there is a later bridge to answer) the other phones in the group continue to ring. I am trying to solve this which for some reason occurs more after I updated to the recent git. I am hoping if I can combine into a single bridge command the problem will be solved. Any suggestion greatly appreciated.<div>
<br></div><div>BTW, the command below does nothing, nothing in the debug, it shows up but nothing happens. I tried using ! , | but no luck.<br><div><br></div><div> <action application="bridge" data="[originate_timeout=17]group/home@${domain_name}!<span style="color:rgb(148,49,192);font-family:Menlo;font-size:11px">[originate_timeout=1]group/MGT@${domain_name}</span>"/></div>
<div><div><br></div><div><div><br></div><div><div><div><div><div class="h5"><div>On Apr 4, 2012, at 10:51 AM, Mario G wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div style="word-wrap:break-word">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;color:rgb(148,49,192)"><span style="color:#000000">Testing the latest git has introduced an issue but I wonder if I can get around it by combining the snippet below into one bridge command. If I can set the ringback in the bridge it may fix it. I did not see this in the wiki. Can it be done?</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;color:rgb(148,49,192)"><span style="color:#000000">Mario G</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;color:rgb(148,49,192)">
<span style="color:#000000"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;color:rgb(148,49,192)"><span style="color:#000000"> </span><span style="color:#b72800"><</span><span style="color:#000000">action application=</span>"bridge"<span style="color:#000000"> data=</span>"[originate_timeout=17]group/home@${domain_name}"<span style="color:#b72800">/></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo"><span style="white-space:pre-wrap">        </span><action application=<span style="color:rgb(148,49,192)">"set"</span> data=<span style="color:rgb(148,49,192)">"ringback=${us-ring}"</span><span style="color:rgb(183,40,0)">/></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo"><span style="white-space:pre-wrap">        </span><<span style="">action application=</span><font color="#9431c0">"bridge"</font><span style=""> data=</span><font color="#9431c0">"[originate_timeout=1]group/MGT@${domain_name}"</font><span style="color:rgb(183,40,0)">/></span></div>
<div><span style="color:#b72800"><br></span></div></div></div></div>_________________________________________________________________________<br></blockquote></div><br></div></div></div></div></div></div><br>_________________________________________________________________________<br>
Pr</blockquote></div></blockquote></div></body></html>