marcus julius | 1 Apr 2010 11:11
Picon
Favicon

mutual calling and disconnecting it

Hi,

Multiple parties are part of a conference in my application. The conference is constructed by each party calling the other members of the conference.

For instance,

-- the members of the conference are A, B and C.
-- A calls B and C at startup,
-- B calls A and C and
-- C calls A and B.

What I want to do is disconnect or connect one party (say A) from the conference depending on the situation without removing it from the conference. I use pjsua_conf_connect and pjsua_conf_disconnect functions, but there are problems.

Again, in an example,
-- A does not want to talk to or hear from conference, so sends a request to B and C
-- B removes the co nnection (both input and output) by using the call_id of the call between A and B and getting the conf_slot of the call.
-- C removes the connection (both input and output) by using the call_id of the call between A and C and getting the conf_slot of the call.

it does not remove the connection this way. However,

if I remove the connection in the A's side too, then the connection cannot be established again.

I do not know the innerworkings of the make_call or conf_connect mechanisms when both parties call each other, so any insight is appreciated.

Thank you.

Mesut.

Looking for the perfect gift? Give the gift of Flickr!
<div>
<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">Hi,<br><br>Multiple parties are part of a conference in my application. The conference is constructed by each party calling the other members of the conference.<br><br>For instance, <br><br>-- the members of the conference are A, B and C. <br>-- A calls B and C at startup,<br>-- B calls A and C and<br>-- C calls A and B.<br><br>What I want to do is disconnect or connect one party (say A) from the conference depending on the situation without removing it from the conference. I use pjsua_conf_connect and pjsua_conf_disconnect functions, but there are problems.<br><br>Again, in an example, <br>-- A does not want to talk to or hear from conference, so sends a request to B and C<br>-- B removes the co
 nnection (both input and output) by using the call_id of the call between A and B and getting the conf_slot of the call.<br>-- C removes the connection (both input and
 output) by using the call_id of 
the call between A and C and getting the conf_slot of the call.<br><br>it does not remove the connection this way. However,<br><br>if I remove the connection in the A's side too, then the connection cannot be established again. <br><br>I do not know the innerworkings of the make_call or conf_connect mechanisms when both parties call each other, so any insight is appreciated.<br><br>Thank you.<br><br>Mesut.<br>
</td></tr></table>
<br>
Looking for the perfect gift?<a href="http://www.flickr.com/gift/"> Give the gift of Flickr!</a>
</div>
maciek | 1 Apr 2010 11:11
Picon

Capture call audio to buffer with PYTHON

Is there Python api to capture call audio and manipulate samples?

maciek

Adrian Georgescu | 1 Apr 2010 13:34
Favicon
Gravatar

Re: Capture call audio to buffer with PYTHON

If you like Python and PJSIP you could take a look at SIP SIMPLE  
client SDK. It contains functions to capture audio as well.

http://sipsimpleclient.com/wiki/SipMiddlewareApi#MiddlewareAPI

Adrian

On Apr 1, 2010, at 11:11 AM, maciek wrote:

> Is there Python api to capture call audio and manipulate samples?
>
> maciek
>
>
> _______________________________________________
> 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
>

maciek | 1 Apr 2010 14:21
Picon

Re: Capture call audio to buffer with PYTHON

Adrian Georgescu <ag <at> ag-projects.com> writes:

> 
> If you like Python and PJSIP you could take a look at SIP SIMPLE  
> client SDK. It contains functions to capture audio as well.
> 
> http://sipsimpleclient.com/wiki/SipMiddlewareApi#MiddlewareAPI
> 
> Adrian
> 
> On Apr 1, 2010, at 11:11 AM, maciek wrote:
> 
> > Is there Python api to capture call audio and manipulate samples?
> >
> > maciek
> >
> >
> > _______________________________________________
> > 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
> >
> 
> 

Actually I was thinking about pjsua.py lib becouse I already wrote a some code 
using this lib and I am wondering how can I capture stream to buff to detect
signal. I have already implement inband signal detection too (python), but i
have no idea how to get to the stream to make this detection a real-time.

Maciek

pranoti nandurkar | 1 Apr 2010 15:09
Picon

Linking problem

Hello,
I was compiling sample program given in tutorials.
I create a new folder for the same program.
there are 3 files in my folder
1. main.c
2.main_rtems.c
3.pjsua_app.c

and one makefile whose contents are:-

PJBASE=/home/pranoti/pjproject

include $(PJBASE)/build.mak

CC = $(APP_CC)
LDFLAGS = $(APP_LDFLAGS)
LDLIBS = $(APP_LDLIBS)
CFLAGS = $(APP_CFLAGS)
CPPFLAGS = ${CFLAGS}

all: main

main: main.c
    $(CC)-O$ <at> $<$(CPPFLAGS)$(LDFLAGS)$(LDLIBS)

clean:
    rm -f main.o main




I got errors for makefile as:-

makefile:8: *** Recursive variable `CFLAGS' references itself (eventually).  Stop.

and for programs,;-
/usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status


can anyone tell me why error in makefile?
and the error in program regarding to it or not?

Please help me.
Thanks in advance.

<div><p>Hello,<br>I was compiling sample program given in tutorials.<br>I create a new folder for the same program.<br>there are 3 files in my folder<br>1. main.c<br>2.main_rtems.c<br>3.pjsua_app.c<br><br>and one makefile whose contents are:-<br><br>PJBASE=/home/pranoti/pjproject<br><br>include $(PJBASE)/build.mak<br><br>CC = $(APP_CC)<br>LDFLAGS = $(APP_LDFLAGS)<br>LDLIBS = $(APP_LDLIBS)<br>CFLAGS = $(APP_CFLAGS)<br>CPPFLAGS = ${CFLAGS}<br><br>all: main<br><br>main: main.c<br>
&nbsp;&nbsp;&nbsp; $(CC)-O$ <at> $&lt;$(CPPFLAGS)$(LDFLAGS)$(LDLIBS)<br><br>clean:<br>&nbsp;&nbsp;&nbsp; rm -f main.o main<br><br><br><br><br>I got errors for makefile as:-<br><br>makefile:8: *** Recursive variable `CFLAGS' references itself (eventually).&nbsp; Stop.<br><br>and for programs,;-<br>/usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function `_start':<br>(.text+0x18): undefined reference to `main'<br>collect2: ld returned 1 exit status<br><br><br>can anyone tell me why error in makefile?<br>
and the error in program regarding to it or not?<br><br>Please help me.<br>Thanks in advance.<br></p></div>
Ravi Kanth | 1 Apr 2010 20:56
Picon

Inband DTMF Detection

Hi All,
 
Can anybody help me with a in band DTMF detection algorithm which i can plug into pjsip.
 
Regards,
Ravi
 
 
<div>
<div>Hi All,</div>
<div>&nbsp;</div>
<div>Can anybody help me with a in band DTMF detection algorithm which i can plug into pjsip.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Ravi</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</div>
Ravi Kanth | 2 Apr 2010 17:46
Picon

Send RTP packets Indefinitely

Hi,
 
My application communicates with analog base station controller for field communication.
this way it a one sided audio at any one point of time.
This uses a PTT mechanism.
From my voip application i play an MFT(tones) indefinitely until i want to talk.So i would be playing the tone in audio continously till i press PTT.
This means that i wont receive any RTP packets from the other end.
 
When i do this i am able to send it for around 2 mins.Then the RTP just cuts off and i think its waiting for some audio form the other end.When ever audio is there from other end i hearthe tone and then again its gone.
Is this this is because of VAD being enabled.I have tried disbaling the VAD in G.711 codec... but did not help me.
And my application is not built on sip call but uses a multicast RTP stream which uses the PCMU/8000(G711 u law) CODEC.
 
Is there any configuration item so that i can disable this stuff.....i should be able to send my packets indefinitely...no matter i receive packets from other end or not.
Thanks for your help. Looking forward for a solution.
 
Regards,
Ravi
<div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>My application communicates with&nbsp;analog base station controller for field communication.</div>
<div>this way it a one sided audio at any one point of time.</div>
<div>This uses a PTT mechanism.</div>
<div>From my voip application i play an MFT(tones) indefinitely until i want to talk.So i would be playing the tone in audio continously till i press PTT.</div>
<div>This means that i wont receive any RTP packets from the other end.</div>
<div>&nbsp;</div>
<div>When i do this i am able to send it for around 2 mins.Then the RTP just cuts off and i think its waiting for some audio form the other end.When ever audio is there from other end i hearthe tone and then again its gone.</div>

<div>Is this this is because of VAD being enabled.I have tried disbaling the VAD in G.711 codec...&nbsp;but did not help me.</div>
<div>And my application is not built on sip call but uses a multicast RTP stream which uses the PCMU/8000(G711 u law) CODEC.</div>
<div>&nbsp;</div>
<div>Is there any configuration item so that i can disable this stuff.....i should be able to send my packets indefinitely...no matter i receive packets from other end or not.</div>
<div>Thanks for your help. Looking forward for a solution.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Ravi</div>
</div>
sthustfo | 2 Apr 2010 22:43
Picon

pjnath

Hi,


I was wondering how can I use pjnath in ice-lite mode? I did not notice anything outright in the pjnath apis to specify the ice-lite mode.

Thanks in advance.
<div>
<p>Hi,</p>
<div><br></div>
<div>I was wondering how can I use pjnath in ice-lite mode? I did not notice anything outright in the pjnath apis to specify the ice-lite mode.</div>
<div><br></div>
<div>Thanks in advance.</div>
</div>
sthustfo | 3 Apr 2010 16:55
Picon

icedemo app

Hi all,


I am using release 1.5.5 on ubuntu 9.1. When i compile and run icedemo without any command line config parameters, 

and choose 'c' to create the instance - I see the following error.

icedemo Creating ICE stream transport with 1 component(s)
icedemo.c error creating ice: Not found (PJ_ENOTFOUND)

Am I missing something here? Why does the creation of instance always fail?

Thanks in advance.
<div>
<p>Hi all,</p>
<div><br></div>
<div>I am using release 1.5.5 on ubuntu 9.1. When i compile and run icedemo without any command line config parameters,&nbsp;</div>
<div><br></div>
<div>and choose 'c' to create the instance - I see the following error.</div>
<div><br></div>
<div>icedemo Creating ICE stream transport with 1 component(s)</div>
<div>icedemo.c error creating ice: Not found (PJ_ENOTFOUND)</div>
<div><br></div>
<div>Am I missing something here? Why does the creation of instance always fail?</div>
<div><br></div>
<div>Thanks in advance.</div>
</div>
sthustfo | 3 Apr 2010 18:28
Picon

Re: icedemo app


OK guys, I figured out the issue. When I had run the icedemo example, my network was down. Probably that was the reason for failure.
 

On Sat, Apr 3, 2010 at 8:25 PM, sthustfo <sthustfo <at> gmail.com> wrote:
Hi all,

I am using release 1.5.5 on ubuntu 9.1. When i compile and run icedemo without any command line config parameters, 

and choose 'c' to create the instance - I see the following error.

icedemo Creating ICE stream transport with 1 component(s)
icedemo.c error creating ice: Not found (PJ_ENOTFOUND)

Am I missing something here? Why does the creation of instance always fail?

Thanks in advance.

<div>
<div><br></div>OK guys, I figured out the issue. When I had run the icedemo example, my network was down. Probably that was the reason for failure.<div>&nbsp;<div>
<br><div class="gmail_quote">On Sat, Apr 3, 2010 at 8:25 PM, sthustfo <span dir="ltr">&lt;<a href="mailto:sthustfo <at> gmail.com">sthustfo <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Hi all,<div><br></div>
<div>I am using release 1.5.5 on ubuntu 9.1. When i compile and run icedemo without any command line config parameters,&nbsp;</div>
<div><br></div>
<div>and choose 'c' to create the instance - I see the following error.</div>
<div><br></div>
<div>icedemo Creating ICE stream transport with 1 component(s)</div>
<div>icedemo.c error creating ice: Not found (PJ_ENOTFOUND)</div>
<div><br></div>
<div>Am I missing something here? Why does the creation of instance always fail?</div>

<div><br></div>
<div>Thanks in advance.</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

Gmane