WAV EOF callback in python

JR
José Rodrigues
Tue, Sep 2, 2014 9:44 AM

Hi,

I'm writing a little python script that makes a call, plays a wav file,
after the called  party answers, and then disconnects the call.

What i'd like to now is if there is a callback for when the wav playback is
finished, so i can use it to disconnect the call and end the script?

I've searched the mailing list and i've found that this question was asked
multiple times, but never had a definitive answer...

Were the patches purposed ever merged to the trunk (i'm using 2.2.1)? If
so, i can i use the callback (i very fresh in the python world  :))?

Thanks

José Rodrigues

Hi, I'm writing a little python script that makes a call, plays a wav file, after the called party answers, and then disconnects the call. What i'd like to now is if there is a callback for when the wav playback is finished, so i can use it to disconnect the call and end the script? I've searched the mailing list and i've found that this question was asked multiple times, but never had a definitive answer... Were the patches purposed ever merged to the trunk (i'm using 2.2.1)? If so, i can i use the callback (i very fresh in the python world :))? Thanks José Rodrigues
JJ
Jens Jorgensen
Tue, Sep 2, 2014 10:07 AM

Hi, you must've found my question in the list, and I also wrote a patch
for this, because this is required the way I'm using it. My patch was
never accepted (AFAIK), but I may be able to hammer it into shape for
the version you have. Check back tomorrow...

On 9/2/14 5:44 PM, José Rodrigues wrote:

Hi,

I'm writing a little python script that makes a call, plays a wav
file, after the called  party answers, and then disconnects the call.

What i'd like to now is if there is a callback for when the wav
playback is finished, so i can use it to disconnect the call and end
the script?

I've searched the mailing list and i've found that this question was
asked multiple times, but never had a definitive answer...

Were the patches purposed ever merged to the trunk (i'm using 2.2.1)?
If so, i can i use the callback (i very fresh in the python world  :))?

Thanks

José Rodrigues


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Jens B. Jorgensen
jbj1@ultraemail.net

Hi, you must've found my question in the list, and I also wrote a patch for this, because this is required the way I'm using it. My patch was never accepted (AFAIK), but I may be able to hammer it into shape for the version you have. Check back tomorrow... On 9/2/14 5:44 PM, José Rodrigues wrote: > Hi, > > I'm writing a little python script that makes a call, plays a wav > file, after the called party answers, and then disconnects the call. > > What i'd like to now is if there is a callback for when the wav > playback is finished, so i can use it to disconnect the call and end > the script? > > I've searched the mailing list and i've found that this question was > asked multiple times, but never had a definitive answer... > > Were the patches purposed ever merged to the trunk (i'm using 2.2.1)? > If so, i can i use the callback (i very fresh in the python world :))? > > > Thanks > > José Rodrigues > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -- Jens B. Jorgensen jbj1@ultraemail.net
JR
José Rodrigues
Tue, Sep 2, 2014 10:16 AM

Hi,

Yes, yours was one of the thread i found related to his issue... But it as
it was 4 years old i though it made more sense to open a new one.

I would really appreciate your help with this. I'll definitely check back
tomorrow. :)

Thanks

José Rodrigues

On Tue, Sep 2, 2014 at 11:07 AM, Jens Jorgensen jbj1@ultraemail.net wrote:

Hi, you must've found my question in the list, and I also wrote a patch
for this, because this is required the way I'm using it. My patch was never
accepted (AFAIK), but I may be able to hammer it into shape for the version
you have. Check back tomorrow...

On 9/2/14 5:44 PM, José Rodrigues wrote:

Hi,

I'm writing a little python script that makes a call, plays a wav file,
after the called  party answers, and then disconnects the call.

What i'd like to now is if there is a callback for when the wav playback
is finished, so i can use it to disconnect the call and end the script?

I've searched the mailing list and i've found that this question was
asked multiple times, but never had a definitive answer...

Were the patches purposed ever merged to the trunk (i'm using 2.2.1)? If
so, i can i use the callback (i very fresh in the python world  :))?

Thanks

José Rodrigues


Visit our blog: http://blog.pjsip.org

pjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Jens B. Jorgensenjbj1@ultraemail.net


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, Yes, yours was one of the thread i found related to his issue... But it as it was 4 years old i though it made more sense to open a new one. I would really appreciate your help with this. I'll definitely check back tomorrow. :) Thanks José Rodrigues On Tue, Sep 2, 2014 at 11:07 AM, Jens Jorgensen <jbj1@ultraemail.net> wrote: > Hi, you must've found my question in the list, and I also wrote a patch > for this, because this is required the way I'm using it. My patch was never > accepted (AFAIK), but I may be able to hammer it into shape for the version > you have. Check back tomorrow... > > > On 9/2/14 5:44 PM, José Rodrigues wrote: > > Hi, > > I'm writing a little python script that makes a call, plays a wav file, > after the called party answers, and then disconnects the call. > > What i'd like to now is if there is a callback for when the wav playback > is finished, so i can use it to disconnect the call and end the script? > > I've searched the mailing list and i've found that this question was > asked multiple times, but never had a definitive answer... > > Were the patches purposed ever merged to the trunk (i'm using 2.2.1)? If > so, i can i use the callback (i very fresh in the python world :))? > > > Thanks > > José Rodrigues > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > -- > Jens B. Jorgensenjbj1@ultraemail.net > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
JJ
Jens Jorgensen
Tue, Sep 2, 2014 12:46 PM

Yup, sure, I just need to svn up and merge in my changes and
theoretically then it'll just work, though if there were api changes
then there will need to be some adjustments.

On 9/2/14 6:16 PM, José Rodrigues wrote:

Hi,

Yes, yours was one of the thread i found related to his issue... But
it as it was 4 years old i though it made more sense to open a new one.

I would really appreciate your help with this. I'll definitely check
back tomorrow. :)

Thanks

José Rodrigues

On Tue, Sep 2, 2014 at 11:07 AM, Jens Jorgensen <jbj1@ultraemail.net
mailto:jbj1@ultraemail.net> wrote:

 Hi, you must've found my question in the list, and I also wrote a
 patch for this, because this is required the way I'm using it. My
 patch was never accepted (AFAIK), but I may be able to hammer it
 into shape for the version you have. Check back tomorrow...


 On 9/2/14 5:44 PM, José Rodrigues wrote:
 Hi,

 I'm writing a little python script that makes a call, plays a wav
 file, after the called  party answers, and then disconnects the call.

 What i'd like to now is if there is a callback for when the wav
 playback is finished, so i can use it to disconnect the call and
 end the script?

 I've searched the mailing list and i've found that this question
 was asked multiple times, but never had a definitive answer... 

 Were the patches purposed ever merged to the trunk (i'm using
 2.2.1)? If so, i can i use the callback (i very fresh in the
 python world  :))?


 Thanks

 José Rodrigues


 _______________________________________________
 Visit our blog: http://blog.pjsip.org

 pjsip mailing list
 pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
 http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
 -- 
 Jens B. Jorgensen
 jbj1@ultraemail.net <mailto:jbj1@ultraemail.net>


 _______________________________________________
 Visit our blog: http://blog.pjsip.org

 pjsip mailing list
 pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org>
 http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Jens B. Jorgensen
jbj1@ultraemail.net

Yup, sure, I just need to svn up and merge in my changes and theoretically then it'll just work, though if there were api changes then there will need to be some adjustments. On 9/2/14 6:16 PM, José Rodrigues wrote: > Hi, > > Yes, yours was one of the thread i found related to his issue... But > it as it was 4 years old i though it made more sense to open a new one. > > I would really appreciate your help with this. I'll definitely check > back tomorrow. :) > > Thanks > > José Rodrigues > > > On Tue, Sep 2, 2014 at 11:07 AM, Jens Jorgensen <jbj1@ultraemail.net > <mailto:jbj1@ultraemail.net>> wrote: > > Hi, you must've found my question in the list, and I also wrote a > patch for this, because this is required the way I'm using it. My > patch was never accepted (AFAIK), but I may be able to hammer it > into shape for the version you have. Check back tomorrow... > > > On 9/2/14 5:44 PM, José Rodrigues wrote: >> Hi, >> >> I'm writing a little python script that makes a call, plays a wav >> file, after the called party answers, and then disconnects the call. >> >> What i'd like to now is if there is a callback for when the wav >> playback is finished, so i can use it to disconnect the call and >> end the script? >> >> I've searched the mailing list and i've found that this question >> was asked multiple times, but never had a definitive answer... >> >> Were the patches purposed ever merged to the trunk (i'm using >> 2.2.1)? If so, i can i use the callback (i very fresh in the >> python world :))? >> >> >> Thanks >> >> José Rodrigues >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- > Jens B. Jorgensen > jbj1@ultraemail.net <mailto:jbj1@ultraemail.net> > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -- Jens B. Jorgensen jbj1@ultraemail.net