[Freeswitch-users] Changing state on 1:1 from PROGRESS_MEDIA to PROGRESS

Moises Silva moises.silva at gmail.com
Thu Aug 13 18:04:13 PDT 2009


Yes, agreed, but there is no point in sending a WARNING since is a normal
condition, therefore should not even try to change the state of the channel.

On Thu, Aug 13, 2009 at 7:57 PM, Mathieu Rene <mrene_lists at avgs.ca> wrote:

> It probably just VETO it so it avoid sending
> SWITCH_MESSAGE_INDICATE_PROGRESS
> again since the call is already making progress from the core's point of view?
> Mathieu Rene
> Avant-Garde Solutions Inc
> Office: + 1 (514) 664-1044 x100
> Cell: +1 (514) 664-1044 x200
> mrene at avgs.ca
>
>
>
>
> On 13-Aug-09, at 11:02 AM, Moises Silva wrote:
>
> On Wed, Aug 12, 2009 at 7:19 PM, Brian West <brian at freeswitch.org> wrote:
>
>> Well you really can't ignore it... it happens with our ISDN stack
>> too.   Thats what the VETO handles.
>>
>> /b
>>
>
> You lost me. What do you mean we can't ignore it? the way I see it, sure we
> can and we should.
>
> Currently that warning comes from the on_ringing() callback which blindly
> attempts to move the state of the zap channel to ZAP_CHANNEL_STATE_PROGRESS,
> even when the state may be already ZAP_CHANNEL_STATE_PROGRESS_MEDIA (which
> means on_proceed() was called first).
>
> As I see it, the VETO warning is more an aid to the programmer so you
> quickly realize your doing a useless state change, which should be fixed. In
> this case, the fix is simply checking the state of the channel before trying
> to move it to progress, and don't even try to move it if already in progress
> with media.
>
>  --
> Moises Silva
> Software Developer
> Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R
> 9T3 Canada
> t. 1 905 474 1990 x 128 | e. moy at sangoma.com
> _______________________________________________
> 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
>
>


-- 
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3
Canada
t. 1 905 474 1990 x 128 | e. moy at sangoma.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090813/1a4a6e2c/attachment-0002.html 


More information about the FreeSWITCH-users mailing list