[Freeswitch-users] Refusing REFER requests
mayamatakeshi
mayamatakeshi at gmail.com
Fri Dec 10 11:49:49 MSK 2010
Thanks,
actually, I don'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).
On Fri, Dec 10, 2010 at 4:01 PM, Steven Ayre <steveayre at gmail.com> wrote:
> I think what Brian is getting at is that if you refuse/ignore the REFER
> you'll probably end up with a dropped call.
>
> Steve on iPhone
>
> On 9 Dec 2010, at 22:49, mayamatakeshi <mayamatakeshi at gmail.com> wrote:
>
>
> On Fri, Dec 10, 2010 at 7:32 AM, Brian West <brian at freeswitch.org> wrote:
>
>> TAG_IF((profile->mflags & MFLAG_REFER), NUTAG_ALLOW("REFER")),
>>
>> This removes refer from the allowed methods in sofia so we will say that
>> the method is NOT allowed.
>>
>> 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.
>>
>
> I am not sure what you mean.
> 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:
>
> if (!(profile->mflags & MFLAG_REFER)) {
> nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
> goto done;
> }
>
> // my pseudo-code:
>
> if (REFER_URI =~ forbidded_transfer_target) {
> nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
> goto done;
> }
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101210/23047a8c/attachment.html
More information about the FreeSWITCH-users
mailing list