[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bayonne-devel] Bayonne2 does not start the script
From: |
David Sugar |
Subject: |
Re: [Bayonne-devel] Bayonne2 does not start the script |
Date: |
Fri, 11 Aug 2006 16:40:16 -0400 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060614) |
I see now. When I did my original testing with linphone, it would take
about a half second before rtp audio would "stabilize", and that was
what the accept timer was originally needed for.
I have changed enterpickup in modules/sip/session.cpp as follows:
else if(event->id == CALL_ACCEPTED && !Driver::sip.accept_timer)
{
event->id = TIMER_EXPIRED;
return false;
}
else if(event->id == CALL_ACCEPTED)
{
startTimer(Driver::sip.accept_timer);
return true;
}
Hooking through timeout assures the correct processing happens in
statePickup, which is based on call type. Ultimately, accept_timer will
have to become a registry related (answer=) timer setting rather than a
global one. In modules/sip/driver.cpp you can set the default for
"accept", or do so through the config, and set it to zero with this change.
Julien Chavanton wrote:
> I am testing Bayonne2, the script I am calling address@hidden does not
> start ?
>
>
> address@hidden bayonne2-1.5.25]# vi
> /usr/local/share/bayonne/scripts/dtmf_say.scr
>
> ---------------------------------------------------------------------------------------------------------------
>
>
> register.sip proxy=192.168.0.156 uri=sip:address@hidden userid=202
> secret=202 timeout=3600
>
> slog "BREAK1"
> slog "BREAK2"
> slog "BREAK3"
> ---------------------------------------------------------------------------------------------------------------
>
>
>
>
> registration for dtmf confirmed for 180 seconds
> sip: event 0001; cid=0, did=0, rid=2, instance=4
> registration for dtmf_say confirmed for 3600 seconds
> sip: event 0005; cid=1, did=2, rid=0, instance=3
> sip/0: state=idle, event=201, seq=1
> sip/0: state=pickup, event=100, seq=1
> sip/0: going active; associated with 202
> sip: event 000f; cid=1, did=2, rid=0, instance=3
> sip/0: state=pickup, event=503, seq=2
> sip: event 0012; cid=1, did=2, rid=0, instance=3 (dmtf)
> sip: event 0012; cid=1, did=2, rid=0, instance=4 (dmtf)
> sip: event 0012; cid=1, did=2, rid=0, instance=2 (dmtf)
> sip: event 0012; cid=1, did=2, rid=0, instance=5 (dmtf)
> sip: event 0012; cid=1, did=2, rid=0, instance=5 (dmtf)
> sip: event 0012; cid=1, did=2, rid=0, instance=4 (dmtf)
> sip/0: closing call
> sip/0: state=pickup, event=209, seq=11
> sip/0: state=run, event=100, seq=11
> sip/0: state=hangup, event=100, seq=11
> _______________________________________________
> Bayonne-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bayonne-devel