Paulo,
Can you share the code that sends the clearback after answer the call,
blocking all collect calls ?
Thanks,
Arnaldo
On 8/7/07, Paulo Scardine <[EMAIL PROTECTED]> wrote:
>
> Steve Underwood escreveu:
> > Paulo Scardine wrote:
> >
> >> Hi,
> >>
> >> I'm using a 3 line patch to export Unicall calling_party_category into
> a
> >> callweaver variable, so we can base dialplan decisions on this value.
> >>
> >> It's very useful to block collect calls on some extensions:
> >>
> >> ; Block collect calls
> >> exten => fax,1,GotoIf($["${CAT}"="9"]?byebye-smartass)
> >>
> >> Brazil has this stupid passive automated collect call system where the
> >> caller has 5 seconds to identify himself and if you don't hangup it
> >> means you accept the call. This has a huge potential to fax spam.
> >>
> >> I think it may be useful for other people, can we have this feature
> >> officially supported?
> >>
> >>
> > So, where is your patch? :-)
> >
> It's attached. Be kind, I'm just an apprentice. :-)
> Steve, can I assume ev->offered.call is a ponter to a valid opbx_channel
> when ev->e is UC_EVENT_OFFERED at handle_uc_event()?
> > Apart from chan_unicall, there is nothing in callweaver that has a
> > concept of calling party category, and I doubt that will change any time
> > time. Adding this new variable makes sense. I assume it also makes sense
> > for chan_unicall to look for such a variable, in order to set the
> > calling party category for outgoing calls. Are there any reasons why
> > that might cause trouble?
> >
> > If we can agree on a change covering both incoming and outgoing calls, I
> > will change the code in SVN.
> >
> > Steve
> >
> I also have a "reanswer" patch to libmfcr2.c to deal with collect calls
> in Brazil, because Telefonica does not always send the right category
> (9) for collect calls, especially if the call originates from
> cellphones. Currently it blocks ALL collect calls (sending a 1000ms
> clearback). I'm trying to make it dialplan based, not sure how. Should
> I make an app_reanswer?
>
> How about fiddling with libmfcr2 timers without having to recompile? I
> would like to add something like an unicall_timers.conf:
>
> [argentina]
> group_i_end_of_DNIS = 0
> group_b_on_DNIS_timeout = TRUE
> t3 = 5000
>
> [brazil]
> group_i_end_of_DNIS = 0
> group_a_immediate_accept = 0
> group_b_on_DNIS_timeout = TRUE
> t3 = 5000
>
> If you think its worth, how would you like to see it implemented?
>
> TIA,
> --
> Paulo Scardine
>
>
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
>
>
>
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users