<div>Thanks,<br></div><div>actually, I don&#39;t want to go with this, but I need to list my options trying to solve an issue with a terminal (and replacing the terminal is not a option).</div><br><div class="gmail_quote">
On Fri, Dec 10, 2010 at 4:01 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>I think what Brian is getting at is that if you refuse/ignore the REFER you&#39;ll probably end up with a dropped call.<br><br>Steve on iPhone</div><div><div class="h5"><div><br>On 9 Dec 2010, at 22:49, mayamatakeshi &lt;<a href="mailto:mayamatakeshi@gmail.com" target="_blank">mayamatakeshi@gmail.com</a>&gt; wrote:<br>
<br></div><blockquote type="cite"><div><br><div class="gmail_quote">On Fri, Dec 10, 2010 at 7:32 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">TAG_IF((profile-&gt;mflags &amp; MFLAG_REFER), NUTAG_ALLOW(&quot;REFER&quot;)),<div><br></div><div>This removes refer from the allowed methods in sofia so we will say that the method is NOT allowed.</div>

<div><br></div><div>If you want to refuse when the destination is invalid then give up now because you will need to know before the refer is sent to know that.</div></div></blockquote><div><br></div><div>I am not sure what you mean.<br>

I was thinking in adding a new parameter for mod_sofia like &quot;forbidden_transfer_target&quot; and add code in sofia.c right after that MFLAG check:<br><br>        if (!(profile-&gt;mflags &amp; MFLAG_REFER)) {<br>                nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());<br>

                goto done;<br>        }<br><br>// my pseudo-code:<br><br>        if (REFER_URI =~ forbidded_transfer_target) {<br>                nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());<br>                goto done;<br>

        }<br></div></div><br>
</div></blockquote></div></div><div class="im"><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>