486 - Busy Here and Python Wrapper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Worked fine now!

Thank you!
Mesquita

On Sat, 2008-03-08 at 00:49 +0000, Benny Prijono wrote:
> On 3/7/08, Jo?o Mesquita <jmesquita at contactnet.com.br> wrote:
> > Dear all,
> >
> >         I am having trouble detecting 486 responses to invite requests when
> >  using PJSUA-API with the python wrapper.
> >
> >         By looking at the struct definition of sip_event passed on to the
> >  on_call_state callback, I could not figure out if there is a way to see
> >  what message exactly is being received at each call setup stage.
> 
> True pjsip_event is not implemented in Python, since most of its
> contents are pointers to pjsip objects. But to get the call status you
> can use something like this instead:
> 
>   call_info = py_pjsua.call_get_info(call_id)
>   if call_info.last_status == 486:
>      print "Yeah it's 486"
> 
> cheers,
>  -benny
> 
> 
> >         Pjsip_Event's docstrings does not help much either ... :D
> >
> >  Thanks,
> >  Mesquita
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux