<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Peter,<div><br></div><div>I had a similar issue and I did the following in my dialplan:</div><div><br></div><div><div> <extension name="from_provider_to_internal_switch"></div><div> <condition field="destination_number" expression="^(\d{10})$"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="hangup_after_bridge=true"/></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="continue_on_fail=21"/></div><div> <action application="bridge" data="{sip_cid_type=none}sofia/gateway/otherswitch/$1"/></div><div> <action application="transfer" data="603to486"/></div><div> </condition></div><div> </extension></div><div><br></div><div> <extension name="603to486"></div><div> <condition field="${proto_specific_hangup_cause}" expression="<a href="sip:603">sip:603</a>"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="set" data="sip_ignore_remote_cause=true"/></div><div> <action application="respond" data="486"/></div><div> <action application="hangup" data="USER_BUSY"/></div><div> </condition></div><div> </extension></div><div><br></div><div>You would have to replace 21 by what the q850 code FS gets from the phone, or true, and 603 by 480.</div><div><br></div><div>It's probably not the best way to do it. A LUA script would be nicer.</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="font-size: 14px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>Le 26/03/2010 à 15:36, Peter P GMX a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Nobody has an idea how to force the 486 SIP message?<br><br>Best regards<br>Peter<br><br>Peter P GMX schrieb am 22.03.2010:<br><blockquote type="cite">I tried this, but only with half success<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">after the phones responds with "do not disturb"<br></blockquote><blockquote type="cite">(Variables from Info application<br></blockquote><blockquote type="cite">variable_proto_specific_hangup_cause: [<a href="sip:480">sip:480</a>]<br></blockquote><blockquote type="cite">variable_sip_hangup_phrase: [Do Not Disturb])<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I do process the following:<br></blockquote><blockquote type="cite"><action application="bridge"<br></blockquote><blockquote type="cite">data="loopback/hangup_causes_${sip_hangup_phrase}"/><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In the following dialplan I process:<br></blockquote><blockquote type="cite"><extension name="hangup-causes"><br></blockquote><blockquote type="cite"><action application="info" data=""/><br></blockquote><blockquote type="cite"><condition field="destination_number" expression="hangup_causes_Do Not<br></blockquote><blockquote type="cite">Disturb"><br></blockquote><blockquote type="cite"><action application="sleep" data="1000"/><br></blockquote><blockquote type="cite"><action application="set" data="sip_ignore_remote_cause=true"/><br></blockquote><blockquote type="cite"><!-- <action application="respond" data="486"/> --><br></blockquote><blockquote type="cite"><action application="hangup" data="USER_BUSY"/><br></blockquote><blockquote type="cite"></condition><br></blockquote><blockquote type="cite"></extension><br></blockquote><blockquote type="cite">Freeswitch sends a 480 Message with<br></blockquote><blockquote type="cite">Reason: Q.850;cause=17;text="USER_BUSY"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is a first step, but I need a 486 message as the PSTN still reponds<br></blockquote><blockquote type="cite">"temporary unavailable" instead of "busy". Also "respond" with "486"<br></blockquote><blockquote type="cite">does not work, as commented in the dialplan.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It seems that the 480 message cannot be overriden in this case.<br></blockquote><blockquote type="cite">Freeswitch insists on using 480<br></blockquote><blockquote type="cite">mod_sofia.c:352 sofia/internal/203@mydomain Overriding SIP cause 486<br></blockquote><blockquote type="cite">with 480 from the other leg<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any other idea to achieve a 486 message?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards<br></blockquote><blockquote type="cite">Peter<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Leon de Rooij schrieb:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Don't know if it helps, but the inline attribute can only be set on <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">actions, not on conditions.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Also, the hangup application is not allowed to be run inline:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://fisheye.freeswitch.org/browse/FreeSWITCH/src/mod/applications/mod_dptools/mod_dptools.c?r=HEAD#l3047">http://fisheye.freeswitch.org/browse/FreeSWITCH/src/mod/applications/mod_dptools/mod_dptools.c?r=HEAD#l3047</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">(it has no SAF_ROUTING_EXEC flag)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Perhaps you can try to transfer to another context directly after your <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">bridge ? (where that second context contains an extension with <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">conditions matching on variable_originate_disposition)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">kind regards,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Leon<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Mar 16, 2010, at 12:55 PM, Peter P GMX wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I have the folowing scenario:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> A Snom phone has activated DND (do not disturb)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> When the phone is called, it returns "480 Do Not Disturb" and then<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">"404 Not Found".<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> Freeswitch then announces NO_USER_RESPONSE to the caller (PSTN).<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> The PSTN then (wrongly) announces "this number is not listed".<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">My question: How can we overcome this and announce back a different<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">message to PSTN, but only on NO_USER_RESPONSE.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I tried to continue on bridge and then this after the bridge command <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">the<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">following:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> <condition field="variable_originate_disposition"<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">expression="NO_USER_RESPONSE" inline="true"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> <action application="hangup" data="USER_BUSY"/><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> </condition><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">But the installed Freeswith does not support the "inline" yet and we<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">will not be able to update Freeswitch soon.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">So my question:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Is there any other way to achieve this?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Best regards<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Peter<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></div></blockquote></div><br></div></body></html>