<html><body bgcolor="#FFFFFF"><div>I think what Brian is getting at is that if you refuse/ignore the REFER you'll probably end up with a dropped call.<br><br>Steve on iPhone</div><div><br>On 9 Dec 2010, at 22:49, mayamatakeshi &lt;<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>&gt; wrote:<br><br></div><div></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"><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></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("REFER")),<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 "forbidden_transfer_target" and add code in sofia.c right after that MFLAG check:<br><br>        if (!(profile-&gt;mflags &amp; MFLAG_REFER)) {<br>&nbsp;               nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());<br>
&nbsp;               goto done;<br>        }<br><br>// my pseudo-code:<br><br>        if (REFER_URI =~ forbidded_transfer_target) {<br>&nbsp;               nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());<br>&nbsp;               goto done;<br>
        }<br></div></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>