[pjsip] pjsip Digest, Vol 9, Issue 69

Avnish Tyagi avnish.tyagi at tcs.com
Mon May 26 04:05:16 EDT 2008


Hi All,

I want to use PJSIP for integration with our RTP.

Please address following queries:

1. Can i use PJSIP for integrating with third party media application?
2. Does PJSIP stack support Multithreading?
3. Does PJSIP support Multihoming?

Thanks & Regards,
Avnish Kumar Tyagi
Mailto: avnish.tyagi at tcs.com
_



pjsip-request at lists.pjsip.org 
Sent by: pjsip-bounces at lists.pjsip.org
05/26/2008 12:32 PM
Please respond to
pjsip at lists.pjsip.org


To
pjsip at lists.pjsip.org
cc

Subject
pjsip Digest, Vol 9, Issue 69






Send pjsip mailing list submissions to
                 pjsip at lists.pjsip.org

To subscribe or unsubscribe via the World Wide Web, visit
                 
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
or, via email, send a message with subject or body 'help' to
                 pjsip-request at lists.pjsip.org

You can reach the person managing the list at
                 pjsip-owner at lists.pjsip.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pjsip digest..."


Today's Topics:

   1. Re: PJMEDIA problems in SVN on windows mobile (Nanang Izzuddin)
   2. Porting PJSIP to iPhone OS (Anandprakash Venkatasita Gubbala)
   3. Re: PJ_INLINE(void) (Benny Prijono)
   4. Re: Porting PJSIP to iPhone OS (Samuel Vinson)
   5. Re: Registration with pjsip-lib, pjsip_regc_init (Benny Prijono)
   6. Re: Plans for video support (Benny Prijono)
   7. Re: Regarding Conference (Benny Prijono)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 May 2008 09:12:34 +0700
From: "Nanang Izzuddin" <nanang at pjsip.org>
Subject: Re: [pjsip] PJMEDIA problems in SVN on windows mobile
To: "pjsip list" <pjsip at lists.pjsip.org>
Message-ID:
 <c7f43120805251912v123c9563xa85d9660b5546630 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Ramzi,

Here are some notes from the log file:
1. The log file says the call was using G.722 codec which may not be
preferred. To completely disable G.722 please specify "#define
PJMEDIA_HAS_G722_CODEC           0" for WINCE build in the
config_site.h/config_site_sample.h, or you can always lower the
priority of G.722 using pjsua_codec_set_priority() in the
pjsua_wince.cpp.
2. There seems to be a bug in g722.c (error PJMEDIA_CODEC_EFAILED),
the patch below should fix it (please try it and drop some feedback,
since I haven't been able to reproduce the error).

Moreover, assumed caller and callee share the same source code:
3. The caller was not offering PCMU/PCMA in the INVITE, it seems to be
disabled on purpose since it is enabled by default.
4. GSM seems to be there, it just had a lower priority than G.722, so
it was not chosen.


---- begin of patch ----

Index: pjmedia/src/pjmedia-codec/g722.c
===================================================================
--- pjmedia/src/pjmedia-codec/g722.c    (revision 1964)
+++ pjmedia/src/pjmedia-codec/g722.c    (working copy)
@@ -568,6 +568,7 @@
     }

     /* Encode to temporary buffer */
+    output->size = output_buf_len;
     status = g722_enc_encode(&g722_data->encoder, 
(pj_int16_t*)input->buf,
                             SAMPLES_PER_FRAME, output->buf, 
&output->size);
     if (status != PJ_SUCCESS) {

---- end of patch ----


Thanks for the report.

Regards,
nanang


2008/5/26 Ramzi Touma <rtt00 at aub.edu.lb>:
> Hi,
>
> I am trying to work with the latest SVN (wince_demos project). I am not
> being able to use any of the GSM, PCMU, PCMA codecs (I was able to do so
> with no problems using the 0.8.0 package and a couple of later SVN 
versions
> (few weeks ago not sure when exactly)). Anyway, currently I am getting 
the
> following in the pjsua log file:
>
>
>
> strm002980A4 Codec encode() error: Codec internal creation error
> (PJMEDIA_CODEC_EFAILED) [err:220081]
>
>
>
> (I am currently working with SVN of today but the problem was 
encountered
> throughout past week)
>
>
>
> Attached is the complete log file of this scenario.
>
>
>
> Thanks,
>
> Ramzi
>
>
>
>
>
> Ramzi T. Touma
>
> Electrical and Computer Engineering
>
> American University of Beirut
>
> P.O. Box 11-0236/ 5555
>
> Riad el Solh Square 1107 - 2020
>
> Email: rtt00 at aub.edu.lb
>
>
>
> _______________________________________________
> 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
>
>



------------------------------

Message: 2
Date: Mon, 26 May 2008 09:36:41 +0530
From: Anandprakash Venkatasita Gubbala
                 <Anandprakash_Gubbala at infosys.com>
Subject: [pjsip] Porting PJSIP to iPhone OS
To: pjsip list <pjsip at lists.pjsip.org>
Message-ID:
 <B04808A8DE78DC40A4CF497F58B9DEC31010AA5CEF at HYDHTCMBX02.ad.infosys.com>
 
Content-Type: text/plain; charset="us-ascii"


Hi,

We are trying to port PJSIP to iphoneOS. We are using Xcode tools. We see 
lot of errors referring to iphone OS header files.

As a first step we ported PJSIP to MAC OS X 10.5.2. This was a easy task 
as we used the configure tool. However we could not find any documentation 
on porting PJSIP to iphoneOS at PJSIP site.

Please forward me to a link which gives information on porting PJSIP to 
iphoneOS.

Thanks & Regards
Anand

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
solely for the use of the addressee(s). If you are not the intended 
recipient, please notify the sender by e-mail and delete the original 
message. Further, you are not to copy, disclose, or distribute this e-mail 
or its contents to any other person and any such actions are unlawful. 
This e-mail may contain viruses. Infosys has taken every reasonable 
precaution to minimize this risk, but is not liable for any damage you may 
sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves 
the right to monitor and review the content of all messages sent to or 
from this e-mail address. Messages sent to or from this e-mail address may 
be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***



------------------------------

Message: 3
Date: Mon, 26 May 2008 07:25:57 +0100
From: "Benny Prijono" <bennylp at pjsip.org>
Subject: Re: [pjsip] PJ_INLINE(void)
To: "pjsip list" <pjsip at lists.pjsip.org>
Message-ID:
 <1879720d0805252325g297bd110j7dad8990c643c4d9 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sun, May 25, 2008 at 5:25 PM, Ayman Farouk <aymanfm at gmail.com> wrote:
> Dear All,
>
> I am using PJSUA_WINCE, I added a YES/NO MessageBox to the on_incoming 
call.
> It shows up fine, but when I click hangup I get "access violation error" 
at
> /* Internal */
> PJ_INLINE(void) pj_link_node(pj_list_type *prev, pj_list_type *next)
> {
>     ((pj_list*)prev)->next = next;
>     ((pj_list*)next)->prev = prev;
> }
>
> which is a part of list_i.h. Anyone knows what the problem is?
>

It's generally a bad idea to show modal dialog on the callback because
that will block the stack. Having said that, the stack should not
crash because of that, so the crash was caused by something else
(possibly in the application). It's impossible to know what's wrong
without seeing the call stack trace.

Cheers
 Benny



------------------------------

Message: 4
Date: Mon, 26 May 2008 08:43:15 +0200
From: Samuel Vinson <samuelv at laposte.net>
Subject: Re: [pjsip] Porting PJSIP to iPhone OS
To: pjsip list <pjsip at lists.pjsip.org>,
                 Anandprakash_Gubbala at infosys.com
Message-ID: <483A5C03.6070104 at laposte.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

You can find instruction on : code.google.com/p/siphon
And if you want you can contact me directly, I can help you.

Samuel

Anandprakash Venkatasita Gubbala a ?crit :
> Hi,
> 
> We are trying to port PJSIP to iphoneOS. We are using Xcode tools. We 
see lot of errors referring to iphone OS header files.
> 
> As a first step we ported PJSIP to MAC OS X 10.5.2. This was a easy task 
as we used the configure tool. However we could not find any documentation 
on porting PJSIP to iphoneOS at PJSIP site.
> 
> Please forward me to a link which gives information on porting PJSIP to 
iphoneOS.
> 
> Thanks & Regards
> Anand
> 
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
solely for the use of the addressee(s). If you are not the intended 
recipient, please notify the sender by e-mail and delete the original 
message. Further, you are not to copy, disclose, or distribute this e-mail 
or its contents to any other person and any such actions are unlawful. 
This e-mail may contain viruses. Infosys has taken every reasonable 
precaution to minimize this risk, but is not liable for any damage you may 
sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves 
the right to monitor and review the content of all messages sent to or 
from this e-mail address. Messages sent to or from this e-mail address may 
be stored on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
> 
> _______________________________________________
> 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
> 
> 




------------------------------

Message: 5
Date: Mon, 26 May 2008 07:45:39 +0100
From: "Benny Prijono" <bennylp at pjsip.org>
Subject: Re: [pjsip] Registration with pjsip-lib, pjsip_regc_init
To: "pjsip list" <pjsip at lists.pjsip.org>
Message-ID:
 <1879720d0805252345x246058fcm40021dd39520fb1e at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sun, May 25, 2008 at 8:56 PM, Damien Herraud <d.herraud at gmail.com> 
wrote:
> Hi,
>
>
>  I've captured the SIP packets I send/receive with wireshark. The packet 
I
> send seems to be good (when I compare it to the one from pjsua), the 
server
> answers me with 401, what is correct. But then my program doesn't answer
> back to give the password and finalize registering. I thought it was 
done
> automatically with pjsip_regc functions I used...
>
>  Anyway my callback is still not called, maybe it is related to what's
> above.
>
>  Please find attached my source code and my wireshark capture.
>

Isn't it getchar() will block the main thread?

 -benny

> Cheers,
>
>
> Damien
>
>
>
> On Thu, May 22, 2008 at 2:57 PM, Damien Herraud <d.herraud at gmail.com> 
wrote:
>>
>> Oooops, I forgot the output of the terminal :
>>
>>  14:54:47.152 os_core_unix.c pjlib 0.8.0 for POSIX initialized
>>  14:54:47.152 sip_endpoint.c Creating endpoint instance...
>>  14:54:47.153          pjlib select() I/O Queue created (0x816068c)
>>  14:54:47.153 sip_endpoint.c Module "mod-msg-print" registered
>>  14:54:47.153 sip_transport. Transport manager created.
>>  14:54:47.154   udp0x8174b3c SIP UDP transport started, published 
address
>> is 137.122.91.64:5060
>>  14:54:47.154 sip_endpoint.c Module "mod-tsx-layer" registered
>>  14:54:47.154 sip_endpoint.c Module "mod-stateful-util" registered
>>  14:54:47.154 sip_endpoint.c Module "mod-ua" registered
>>  14:54:47.154 sip_endpoint.c Module "mod-invite" registered
>>  14:54:47.154 sip_endpoint.c Module "mod-100rel" registered
>>  14:54:47.154 sip_endpoint.c Module "mod-simpleua" registered
>>  14:54:47.154       endpoint Request msg REGISTER/cseq=50498
>> (tdta0x819ba10) created.
>>  14:54:47.154   tsx0x819ca7c Transaction created for Request msg
>> REGISTER/cseq=50499 (tdta0x819ba10)
>>  14:54:47.154   tsx0x819ca7c Sending Request msg REGISTER/cseq=50499
>> (tdta0x819ba10) in state Null
>>  14:54:47.154  sip_resolve.c DNS resolver not available, target
>> 'pcscf.open-ims.test:4060' type=Unspecified will be resolved with
>> gethostbyname()
>>  14:54:47.155  sip_resolve.c Target 'pcscf.open-ims.test:4060'
>> type=Unspecified resolved to '137.122.89.83:4060' type=UDP
>>  14:54:47.155   tsx0x819ca7c State changed from Null to Calling,
>> event=TX_MSG
>>
>> Thanks,
>>
>> Damien
>>
>>
>>
>>
>> On Thu, May 22, 2008 at 12:14 PM, Damien Herraud <d.herraud at gmail.com>
>> wrote:
>>>
>>> You were totally right again. Sorry I panicked !!!
>>>
>>> Now I get all basic registration functions working, but the callback
>>> doesn't seem to be called so I have no way to watch the registration 
status.
>>> I thought the callback was automatically called with 
pjsip_regc_create().
>>>
>>> Is there something to do to call it ? You can find my ugly source code
>>> attached.
>>>
>>>
>>> Cheers,
>>>
>>> Damien
>>>
>>>
>>>
>>> On Thu, May 22, 2008 at 4:05 AM, Benny Prijono <bennylp at pjsip.org> 
wrote:
>>>>
>>>> On Wed, May 21, 2008 at 11:40 PM, Damien Herraud 
<d.herraud at gmail.com>
>>>> wrote:
>>>> > Hi,
>>>> >
>>>> >  I have a problem with pjsip_regc_register. I get :
>>>> >
>>>> >> ../src/pjsip-ua/sip_reg.c:239: pjsip_regc_init: Assertion `regc &&
>>>> >> srv_url
>>>> >> && from_url && to_url && contact_cnt && contact && expires' 
failed.
>>>> >
>>>> > when I launch my program.
>>>> >
>>>>
>>>> That assertion of course means that one (or more) of the listed
>>>> variables/parameters is zero or NULL. I suspect it's
>>>> acc->cfg.reg_timeout, since you didn't initialize this value.
>>>> According to the API, you should set this argument to
>>>> PJSIP_REGC_EXPIRATION_NOT_SPECIFIED if you don't want to specify
>>>> expiration.
>>>>
>>>> >
>>>> > It is driving me crazy since I am sure it has worked before
>>>> > (pjsip_regc_send
>>>> > also worked, I mean I got no error. I was getting into regc_cb() 
code
>>>> > when I
>>>> > got this error).
>>>> > I tried to use many saves  but I still get this error !!!
>>>> >
>>>>
>>>> Since the acc->cfg.reg_timeout is not initialized it may contain any
>>>> value. It could be that last time it contains a garbage non-zero 
value
>>>> hence it passed the assertion.
>>>>
>>>> Cheers
>>>>  Benny
>>>>
>>>>
>>>> > You can find my source code (very simple modification of simpleua.c
>>>> > and
>>>> > util.h) attached !
>>>> >
>>>> >
>>>> > Cheers,
>>>> >
>>>> > Damien
>>>> >
>>>> >
>>>> > On Wed, May 21, 2008 at 7:01 AM, Benny Prijono <bennylp at pjsip.org>
>>>> > wrote:
>>>> >>
>>>> >> On Tue, May 20, 2008 at 11:39 PM, Damien Herraud
>>>> >> <d.herraud at gmail.com>
>>>> >> wrote:
>>>> >> > Ok ! I am indeed using version 0.8.
>>>> >> >
>>>> >> > Do you advise me to use svn version instead ?
>>>> >> >
>>>> >> >
>>>> >>
>>>> >> No, I didn't and won't advise you to use svn version just because 
0.8
>>>> >> lacks pj_sockaddr_get_addr() function. You could use other ways to
>>>> >> retrieve IP address from a socket address, please see <pj/sock.h> 
for
>>>> >> more info.
>>>> >>
>>>> >> Cheers
>>>> >>  Benny
>>>> >>
>>>> >>
>>>> >> > Damien
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > On Sat, May 17, 2008 at 6:27 AM, Benny Prijono 
<bennylp at pjsip.org>
>>>> >> > wrote:
>>>> >> >>
>>>> >> >> On Fri, May 16, 2008 at 5:28 PM, Damien Herraud
>>>> >> >> <d.herraud at gmail.com>
>>>> >> >> wrote:
>>>> >> >> > Thanks for that, I get my address !
>>>> >> >> >
>>>> >> >> > By the way when I was trying getting my address with another
>>>> >> >> > method,
>>>> >> >> > I
>>>> >> >> > tried
>>>> >> >> > to use pj_sockaddr_get_addr() function defined here . I got 
an
>>>> >> >> > error
>>>> >> >> > in
>>>> >> >> > compilation, saying that this is not declared. I searched 
PJSIP
>>>> >> >> > project
>>>> >> >> > for
>>>> >> >> > this function with eclipse and I could not find it.
>>>> >> >> >
>>>> >> >>
>>>> >> >> This only exists in SVN version, not in 0.8 release version.
>>>> >> >> Perhaps
>>>> >> >> you're using 0.8?
>>>> >> >>
>>>> >> >> Cheers
>>>> >> >>  Benny
>>>> >> >>
>>>> >> >> > Cheers,
>>>> >> >> >
>>>> >> >> > Damien
>>>> >> >> >
>>>> >> >>
>>>> >> >> _______________________________________________
>>>> >> >> 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
>>>> >> >
>>>> >> >
>>>> >> > _______________________________________________
>>>> >> > 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
>>>> >> >
>>>> >> >
>>>> >>
>>>> >> _______________________________________________
>>>> >> 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
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > 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
>>>> >
>>>> >
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>
>
>
> _______________________________________________
> 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
>
>



------------------------------

Message: 6
Date: Mon, 26 May 2008 07:51:40 +0100
From: "Benny Prijono" <bennylp at pjsip.org>
Subject: Re: [pjsip] Plans for video support
To: "pjsip list" <pjsip at lists.pjsip.org>
Message-ID:
 <1879720d0805252351o1e5354bcwff1a8a713eb34d9e at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, May 23, 2008 at 10:33 PM, Ivan Genov <ivangg_q at yahoo.com> wrote:
> Hi,
>
> I want to ask the creators of PJSIP - when do you expect video support 
to be
> added in PJSIP? It is a great SIP stack and I think video support will 
make
> even greater, as video is becoming more and more popular today. From

True.

> http://trac.pjsip.org/repos/wiki/FAQ#video I know that video is on the 
2008
> roadmap, but do you have insight when it will be available? Is it 
something
> that is currently being worked on and can be ready in 1-2 months, or 
more
> like 5-6 or more months is more likely?
>

Based what we've been focusing on recently (mainly to make existing
features (audio and NAT traversal) better, more robust, more stable,
and works on more platforms), I've got the feeling that probably we
won't have time to do video this year. But we'll see. For now, I'll
just remove it from the FAQ to avoid disapointment.

Cheers
 Benny

> Thanks,
> Ivan.
>



------------------------------

Message: 7
Date: Mon, 26 May 2008 08:02:21 +0100
From: "Benny Prijono" <bennylp at pjsip.org>
Subject: Re: [pjsip] Regarding Conference
To: "pjsip list" <pjsip at lists.pjsip.org>
Message-ID:
 <1879720d0805260002l283fae09tf04b57c0b2298c0d at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, May 23, 2008 at 1:12 PM, Abdul Khadar
<abdul.khadar at pyronetworks.com> wrote:
> Hi,
>
> I have developed a shared library using pjsip.  By using this pjsip 
shared
> library I want to create conference with a java program. For a single 
call
> it is working fine , when I am placing more than one call and I am 
adding
> this port to the conference pool.
>
> After call is  entered into conference voice reaching to all persons who 
are
> in conference ,but voice is braking i.e. delay in voice.
>
> Below is the configuration for each port.
>
> Port #00:
>   Name                    : /dev/dsp
>   Sampling rate           : 16000 Hz
>   Samples per frame       : 160
>   Frame time              : 10 ms
>   Signal level adjustment : tx=0, rx=0
>   Current signal level    : tx=0, rx=0
>   Transmitting to ports   : #1 #2
>
> Port #01:
>   Name                    : strm0x530bf0
>   Sampling rate           : 16000 Hz
>   Samples per frame       : 160
>   Frame time              : 10 ms
>   Signal level adjustment : tx=0, rx=0
>   Current signal level    : tx=0, rx=0
>   Transmitting to ports   :  #0 #2
>
> Port #02:
>   Name                    : strm0x531128
>   Sampling rate           : 16000 Hz
>   Samples per frame       : 160
>   Frame time              : 10 ms
>   Signal level adjustment : tx=0, rx=0
>   Current signal level    : tx=0, rx=0
>   Transmitting to ports   :  #0 #1
>
> this configuration changed to 8000 hz, 240 sample 20 ms also, when I 
have
> this sample rates voice was more breaking, so I change to 10ms. It was
> little bit ok but still it is breaking.
>

What platform are you running this on? Can it handle more than one calls?
For troubleshooting audio problems please consult this page:
http://trac.pjsip.org/repos/wiki/sound-problems

Cheers
 Benny



------------------------------

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


End of pjsip Digest, Vol 9, Issue 69
************************************

ForwardSourceID:NT00005BBA 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080526/4f161005/attachment.html>


More information about the pjsip mailing list