Danilo Canivel | 1 Apr 2011 17:06
Picon

siphon with g729a = terrible sound

Hi, I build a siphon version with g729a.c on it but the sound it terrible…

So im trying to update to g729 VoiceAge, but when I try to compile it give me a error

ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
Undefined symbols for architecture arm:
  "_pjmedia_codec_g729_init", referenced from:
      _pjsua_media_subsys_init in libpjsua-arm-apple-darwin9.a(pjsua_media.o)
ld: symbol(s) not found for architecture arm
collect2: ld returned 1 exit status
make[2]: *** [../bin/pjsua-arm-apple-darwin9] Error 1
make[1]: *** [pjsua] Error 2
make: *** [all] Error 1


Im using a Mac OS 10.6.6, intel core 2 duo verion

What im doing worng here?

Tks!
---------------------------------------------------------------------------------
Danilo Canivel

<div><div><div>
<div>Hi, I build a siphon version with g729a.c on it but the sound it terrible&hellip;</div>
<div><br></div>
<div>So im trying to update to g729 VoiceAge, but when I try to compile it give me a error</div>
<div><br></div>
<div>
<div>ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures</div>
<div>Undefined symbols for architecture arm:</div>
<div>&nbsp;&nbsp;"_pjmedia_codec_g729_init", referenced from:</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;_pjsua_media_subsys_init in libpjsua-arm-apple-darwin9.a(pjsua_media.o)</div>
<div>ld: symbol(s) not found for architecture arm</div>
<div>collect2: ld returned 1 exit status</div>
<div>make[2]: *** [../bin/pjsua-arm-apple-darwin9] Error 1</div>
<div>make[1]: *** [pjsua] Error 2</div>
<div>make: *** [all] Error 1</div>
</div>
<div><br></div>
<div><br></div>
<div>Im using a Mac OS 10.6.6, intel core 2 duo verion</div>
<div><br></div>
<div>What im doing worng here?</div>
<div><br></div>
<div>Tks!</div>
<div>
<div>---------------------------------------------------------------------------------</div>
<div>Danilo Canivel<br><br>
</div>
</div>
</div></div></div>
Matt Nunogawa | 4 Apr 2011 23:51
Favicon

Error Compiling for iPhone Simulator (Xcode4, gcc 4.2.1, iOS 4.3 or 4.2)

I'm currently not able to compile for the simulator. (SVN r

I've a 64bit Mac running Snow Leopard.

The error I'm getting is:

../src/pj/activesock.c: In function ‘activesock_create_iphone_os_stream’:
../src/pj/activesock.c:146: error: ‘kCFStreamNetworkServiceType’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:256)
../src/pj/activesock.c:147: error: ‘kCFStreamNetworkServiceTypeVoIP’ is unavailable
(declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:259)
make[2]: *** [output/pjlib-arm-apple-darwin9/activesock.o] Error 1
make[1]: *** [pjlib] Error 2
make: *** [all] Error 1

My export statements are a little different, as ARCH is necessary to even compile, compared to the
directions 

I'm doing the following:

svn export http://svn.pjsip.org/repos/pjproject/trunk/

CONFIG_SITE=trunk/pjlib/include/pj/config_site.h
echo $CONFIG_SITE
touch $CONFIG_SITE
echo "#define PJ_CONFIG_IPHONE 1" > $CONFIG_SITE
echo "#include <pj/config_site_sample.h>" >> $CONFIG_SITE

export ARCH="-arch i386"
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc

cd trunk
echo `pwd`
./configure-iphone
make dep && make clean && make

I've also tried export IPHONESDK=$DEVPATH/SDKs/iPhoneSimulator4.2.sdk

Would love to hear if anyone got this working with Xcode4

Matt

Jorge | 5 Apr 2011 14:46
Picon

Problems using pjsua_app

Hello:

I am trying to use "pjsua_app.c", but I am not able to speak or listening anything. I debuged the program and when I arrive to    

if (app_config.capture_dev  != PJSUA_INVALID_ID || app_config.playback_dev != PJSUA_INVALID_ID)
    {
    status = pjsua_set_snd_dev(app_config.capture_dev,
                   app_config.playback_dev);
    if (status != PJ_SUCCESS)
        goto on_error;
    }


it jump to the next option. Is it ok? How can I run the program to set-up a voice conversation.

Regards

Jorge.

<div><p>Hello:<br><br>I am trying to use "pjsua_app.c", but I am not able to speak or listening anything. I debuged the program and when I arrive to &nbsp;&nbsp;&nbsp; <br><br>if (app_config.capture_dev&nbsp; != PJSUA_INVALID_ID || app_config.playback_dev != PJSUA_INVALID_ID) <br>
&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; status = pjsua_set_snd_dev(app_config.capture_dev, <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; app_config.playback_dev);<br>&nbsp;&nbsp;&nbsp; if (status != PJ_SUCCESS)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; goto on_error;<br>&nbsp;&nbsp;&nbsp; }<br><br><br>it jump to the next option. Is it ok? How can I run the program to set-up a voice conversation.<br><br>Regards<br><br>Jorge.<br></p></div>
Peter Lukac | 5 Apr 2011 14:56
Picon

Re: Problems using pjsua_app

On Tuesday, April 05, 2011 02:46:26 pm Jorge wrote:
> Hello:
> 
> I am trying to use "pjsua_app.c", but I am not able to speak or listening
> anything. I debuged the program and when I arrive to
> 
> if (app_config.capture_dev  != PJSUA_INVALID_ID || app_config.playback_dev
> != PJSUA_INVALID_ID)
>     {
>     status = pjsua_set_snd_dev(app_config.capture_dev,
>                    app_config.playback_dev);
>     if (status != PJ_SUCCESS)
>         goto on_error;
>     }
> 
> 
> it jump to the next option. Is it ok? How can I run the program to set-up a
> voice conversation.
> 
> Regards
> 
> Jorge.

Did you read this?
http://www.pjsip.org/pjsua.htm

Matt Nunogawa | 5 Apr 2011 18:51
Favicon

Re: Error Compiling for iPhone Simulator (Xcode4, gcc 4.2.1, iOS 4.3 or 4.2)

Made some progress, but pjsip still doesn't work with the simulator...

Again this error is for the simulator only with the most recent build (SVN r3495)

Instead of export ARCH="-arch i386"
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc

I tried all the different gcc flavors in devpath/user/bin and got the farthest:

export ARCH="-arch i686"
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=$DEVPATH/usr/bin/i686-apple-darwin10-llvm-gcc-4.2

This got me closer.  I now get 

ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures

no libraries are generated.  According to the doc pages, I need to use

export CFLAGS += -march=armv6 -mcpu=arm1176jzf-s -mcpu=cortex-a8
export LDFLAGS += -march=armv6 -mcpu=arm1176jzf-s -mcpu=cortex-a8

But I'm sure this is not the right settings for the simulator...

On Apr 4, 2011, at 2:51 PM, Matt Nunogawa wrote:

> I'm currently not able to compile for the simulator. (SVN r
> 
> I've a 64bit Mac running Snow Leopard.
> 
> 
> The error I'm getting is:
> 
> ../src/pj/activesock.c: In function ‘activesock_create_iphone_os_stream’:
> ../src/pj/activesock.c:146: error: ‘kCFStreamNetworkServiceType’ is unavailable (declared
at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:256)
> ../src/pj/activesock.c:147: error: ‘kCFStreamNetworkServiceTypeVoIP’ is unavailable
(declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:259)
> make[2]: *** [output/pjlib-arm-apple-darwin9/activesock.o] Error 1
> make[1]: *** [pjlib] Error 2
> make: *** [all] Error 1
> 
> 
> My export statements are a little different, as ARCH is necessary to even compile, compared to the
directions 
> 
> I'm doing the following:
> 
> svn export http://svn.pjsip.org/repos/pjproject/trunk/
> 
> CONFIG_SITE=trunk/pjlib/include/pj/config_site.h
> echo $CONFIG_SITE
> touch $CONFIG_SITE
> echo "#define PJ_CONFIG_IPHONE 1" > $CONFIG_SITE
> echo "#include <pj/config_site_sample.h>" >> $CONFIG_SITE
> 
> export ARCH="-arch i386"
> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
> 
> cd trunk
> echo `pwd`
> ./configure-iphone
> make dep && make clean && make
> 
> 
> I've also tried export IPHONESDK=$DEVPATH/SDKs/iPhoneSimulator4.2.sdk
> 
> Would love to hear if anyone got this working with Xcode4
> 
> Matt
> 
> 
> 
> 
> _______________________________________________
> 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

Ming | 5 Apr 2011 19:24
Favicon

Re: Error Compiling for iPhone Simulator (Xcode4, gcc 4.2.1, iOS 4.3 or 4.2)

Hi Matt,

Try these steps:
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
CFLAGS="-O2 -m32 -miphoneos-version-min=3.0" LDFLAGS="-O2 -m32"
./configure-iphone

Best regards,
Ming

On Wed, Apr 6, 2011 at 12:51 AM, Matt Nunogawa <Matt.Nunogawa <at> ribbit.com> wrote:
> Made some progress, but pjsip still doesn't work with the simulator...
>
> Again this error is for the simulator only with the most recent build (SVN r3495)
>
> Instead of export ARCH="-arch i386"
> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
>
> I tried all the different gcc flavors in devpath/user/bin and got the farthest:
>
> export ARCH="-arch i686"
> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
> export CC=$DEVPATH/usr/bin/i686-apple-darwin10-llvm-gcc-4.2
>
> This got me closer.  I now get
>
> ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
>
>
> no libraries are generated.  According to the doc pages, I need to use
>
> export CFLAGS += -march=armv6 -mcpu=arm1176jzf-s -mcpu=cortex-a8
> export LDFLAGS += -march=armv6 -mcpu=arm1176jzf-s -mcpu=cortex-a8
>
> But I'm sure this is not the right settings for the simulator...
>
>
>
>
> On Apr 4, 2011, at 2:51 PM, Matt Nunogawa wrote:
>
>> I'm currently not able to compile for the simulator. (SVN r
>>
>> I've a 64bit Mac running Snow Leopard.
>>
>>
>> The error I'm getting is:
>>
>> ../src/pj/activesock.c: In function ‘activesock_create_iphone_os_stream’:
>> ../src/pj/activesock.c:146: error: ‘kCFStreamNetworkServiceType’ is unavailable (declared
at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:256)
>> ../src/pj/activesock.c:147: error: ‘kCFStreamNetworkServiceTypeVoIP’ is unavailable
(declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:259)
>> make[2]: *** [output/pjlib-arm-apple-darwin9/activesock.o] Error 1
>> make[1]: *** [pjlib] Error 2
>> make: *** [all] Error 1
>>
>>
>> My export statements are a little different, as ARCH is necessary to even compile, compared to the directions
>>
>> I'm doing the following:
>>
>> svn export http://svn.pjsip.org/repos/pjproject/trunk/
>>
>> CONFIG_SITE=trunk/pjlib/include/pj/config_site.h
>> echo $CONFIG_SITE
>> touch $CONFIG_SITE
>> echo "#define PJ_CONFIG_IPHONE 1" > $CONFIG_SITE
>> echo "#include <pj/config_site_sample.h>" >> $CONFIG_SITE
>>
>> export ARCH="-arch i386"
>> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
>> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
>>
>> cd trunk
>> echo `pwd`
>> ./configure-iphone
>> make dep && make clean && make
>>
>>
>> I've also tried export IPHONESDK=$DEVPATH/SDKs/iPhoneSimulator4.2.sdk
>>
>> Would love to hear if anyone got this working with Xcode4
>>
>> Matt
>>
>>
>>
>>
>> _______________________________________________
>> 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
>

Matt Nunogawa | 5 Apr 2011 22:02
Favicon

Re: Error Compiling for iPhone Simulator (Xcode4, gcc 4.2.1, iOS 4.3 or 4.2)

Thanks Ming.

CFLAGS did the trick.  I had figured out the min version part walking my dog, but what I needed was the -m32...

Finally compiling with no errors.  

These are my current exports:

export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=$DEVPATH/usr/bin/gcc
export CFLAGS="-O2 -m32 -miphoneos-version-min=3.0" LDFLAGS="-O2 -m32"

Known working to compile for the simulator as of r3495 on 64bit Mac with Xcode4 installed.

On Apr 5, 2011, at 10:24 AM, Ming wrote:

> Hi Matt,
> 
> Try these steps:
> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
> CFLAGS="-O2 -m32 -miphoneos-version-min=3.0" LDFLAGS="-O2 -m32"
> ./configure-iphone
> 
> Best regards,
> Ming
> 
> On Wed, Apr 6, 2011 at 12:51 AM, Matt Nunogawa <Matt.Nunogawa <at> ribbit.com> wrote:
>> Made some progress, but pjsip still doesn't work with the simulator...
>> 
>> Again this error is for the simulator only with the most recent build (SVN r3495)
>> 
>> Instead of export ARCH="-arch i386"
>> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
>> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
>> 
>> I tried all the different gcc flavors in devpath/user/bin and got the farthest:
>> 
>> export ARCH="-arch i686"
>> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
>> export CC=$DEVPATH/usr/bin/i686-apple-darwin10-llvm-gcc-4.2
>> 
>> This got me closer.  I now get
>> 
>> ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
>> 
>> 
>> no libraries are generated.  According to the doc pages, I need to use
>> 
>> export CFLAGS += -march=armv6 -mcpu=arm1176jzf-s -mcpu=cortex-a8
>> export LDFLAGS += -march=armv6 -mcpu=arm1176jzf-s -mcpu=cortex-a8
>> 
>> But I'm sure this is not the right settings for the simulator...
>> 
>> 
>> 
>> 
>> On Apr 4, 2011, at 2:51 PM, Matt Nunogawa wrote:
>> 
>>> I'm currently not able to compile for the simulator. (SVN r
>>> 
>>> I've a 64bit Mac running Snow Leopard.
>>> 
>>> 
>>> The error I'm getting is:
>>> 
>>> ../src/pj/activesock.c: In function ‘activesock_create_iphone_os_stream’:
>>> ../src/pj/activesock.c:146: error: ‘kCFStreamNetworkServiceType’ is unavailable
(declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:256)
>>> ../src/pj/activesock.c:147: error: ‘kCFStreamNetworkServiceTypeVoIP’ is unavailable
(declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:259)
>>> make[2]: *** [output/pjlib-arm-apple-darwin9/activesock.o] Error 1
>>> make[1]: *** [pjlib] Error 2
>>> make: *** [all] Error 1
>>> 
>>> 
>>> My export statements are a little different, as ARCH is necessary to even compile, compared to the directions
>>> 
>>> I'm doing the following:
>>> 
>>> svn export http://svn.pjsip.org/repos/pjproject/trunk/
>>> 
>>> CONFIG_SITE=trunk/pjlib/include/pj/config_site.h
>>> echo $CONFIG_SITE
>>> touch $CONFIG_SITE
>>> echo "#define PJ_CONFIG_IPHONE 1" > $CONFIG_SITE
>>> echo "#include <pj/config_site_sample.h>" >> $CONFIG_SITE
>>> 
>>> export ARCH="-arch i386"
>>> export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
>>> export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
>>> 
>>> cd trunk
>>> echo `pwd`
>>> ./configure-iphone
>>> make dep && make clean && make
>>> 
>>> 
>>> I've also tried export IPHONESDK=$DEVPATH/SDKs/iPhoneSimulator4.2.sdk
>>> 
>>> Would love to hear if anyone got this working with Xcode4
>>> 
>>> Matt
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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

Matt DiMeo | 6 Apr 2011 22:58
Picon
Favicon

pjsua mwi problems: cseq ack problem

I'm seeing multiple problems with pjsua MWI handling.  I've looked into where to fix it, but got lost in the layers of code and could use suggestions on where to focus my debugging.

I've seen this in both 1.8.5 and 1.8.10

Problem 1:  apparently incorrect cseq on ACK of mwi notify

In this problem, the mwi subscription will sometimes get into a state where it will send ACKs with an incorrect cseq value, generally a cseq from the previous MWI notify.

This state continues (with broken MWI) until some other sip transaction occurs (such as a reregistration), which seem to clear the error state.

In the following pjsip output, you'll
1. notify with cseq 105 (notification of 2/4 new/old voice message) from asterisk (10.10.3.77)
2. correct 200 OK response with cseq 105 from pjsip (10.10.3.150)
3. notify with cseq 106 (1/5 new/old messages)
4. INCORRECT 200 OK response with cseq 105 (should be 106)
5. asterisk retries notify with cseq 106
6. INCORRECT 200 OK response with cseq 105
7.... asterisk retries about six more times, and keeps getting incorrect responses.
8. Asterisk eventually gives up retrying.  We never get an on_mwi_info response.

Any suggestions would be very welcome.


 13:44:48.229   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=105 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 105 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 2/4 (0/0)

--end msg--
 13:44:48.230   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:44:48.230 evsub0x7f20640  Subscription state changed ACTIVE --> ACTIVE
 13:44:48.230   pjsua_pres.c  MWI subscription for sip:321 <at> 10.10.3.77 is ACTIVE
 13:44:58.233   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:44:58.233   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:44:59.236   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:44:59.236   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:45:00.236   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:45:00.236   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:45:02.235   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:45:02.235   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:45:06.236   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:45:06.236   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:45:10.237   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:45:10.237   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
 13:45:14.234   pjsua_core.c  RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:
NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150:5060>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
Contact: <sip:unknown <at> 10.10.3.77>
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX (digium)
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: active
Content-Length: 92

Messages-Waiting: yes
Message-Account: sip:voicemail <at> 10.10.3.77
Voice-Message: 1/5 (0/0)

--end msg--
 13:45:14.235   pjsua_core.c  TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5
Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774
From: "unknown" <sip:unknown <at> 10.10.3.77>;tag=as6f7c1371
To: <sip:sip:321 <at> 10.10.3.150>;tag=3b9c5916-6bdb-45d6-b666-15a37784047d
CSeq: 105 NOTIFY
Contact: <sip:321 <at> 10.10.3.150:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Length:  0


--end msg--
^C





<div><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">I'm seeing multiple problems with pjsua MWI handling.&nbsp; I've looked into where to fix it, but got lost in the layers of code and could use suggestions on where to focus my debugging.<br><br>I've seen this in both 1.8.5 and 1.8.10<br><br>Problem 1:&nbsp; apparently incorrect cseq on ACK of mwi notify<br><br>In this problem, the mwi subscription will sometimes get into a state where it will send ACKs with an incorrect cseq value, generally a cseq from the previous MWI notify.<br><br>This state continues (with broken MWI) until some other sip transaction occurs (such as a reregistration), which seem to clear the error state.<br><br>In the following pjsip output, you'll <br>1. notify with cseq 105 (notification of 2/4 new/old voice message) from asterisk (10.10.3.77)<br>2. correct 200 OK response with cseq 105 from pjsip (10.10.3.150)<br>3. notify with cseq 106
 (1/5 new/old messages)<br>4. INCORRECT 200 OK response with cseq 105 (should be 106)<br>5. asterisk retries notify with cseq 106<br>6. INCORRECT 200 OK response with cseq 105<br>7.... asterisk retries about six more times, and keeps getting incorrect responses.<br>8. Asterisk eventually gives up retrying.&nbsp; We never get an on_mwi_info response.<br><br>Any suggestions would be very welcome.<br><br><br>&nbsp;13:44:48.229&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=105 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 105 NOTIFY<br>User-Agent: Asterisk PBX
 (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 2/4 (0/0)<br><br>--end msg--<br>&nbsp;13:44:48.230&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp;
 0<br><br><br>--end msg--<br>&nbsp;13:44:48.230 evsub0x7f20640&nbsp; Subscription state changed ACTIVE --&gt; ACTIVE<br>&nbsp;13:44:48.230&nbsp;&nbsp; pjsua_pres.c&nbsp; MWI subscription for sip:321 <at> 10.10.3.77 is ACTIVE<br>&nbsp;13:44:58.233&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account:
 sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:44:58.233&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end msg--<br>&nbsp;13:44:59.236&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060
 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:44:59.236&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown"
 &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end msg--<br>&nbsp;13:45:00.236&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event:
 message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:45:00.236&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end
 msg--<br>&nbsp;13:45:02.235&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:45:02.235&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP
 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end msg--<br>&nbsp;13:45:06.236&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To:
 &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:45:06.236&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105
 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end msg--<br>&nbsp;13:45:10.237&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length:
 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:45:10.237&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end msg--<br>&nbsp;13:45:14.234&nbsp;&nbsp; pjsua_core.c&nbsp; RX 607 bytes Request msg NOTIFY/cseq=106 (rdata0x7f2064000908) from UDP
 10.10.3.77:5060:<br>NOTIFY sip:321 <at> 10.10.3.150:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.10.3.77:5060;branch=z9hG4bK259bf4a5;rport<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150:5060&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>Contact: &lt;sip:unknown <at> 10.10.3.77&gt;<br>Call-ID: 4ab61803-46e1-40e1-98be-a78db0194774<br>CSeq: 106 NOTIFY<br>User-Agent: Asterisk PBX (digium)<br>Max-Forwards: 70<br>Event: message-summary<br>Content-Type: application/simple-message-summary<br>Subscription-State: active<br>Content-Length: 92<br><br>Messages-Waiting: yes<br>Message-Account: sip:voicemail <at> 10.10.3.77<br>Voice-Message: 1/5 (0/0)<br><br>--end msg--<br>&nbsp;13:45:14.235&nbsp;&nbsp; pjsua_core.c&nbsp; TX 497 bytes Response msg 200/NOTIFY/cseq=105 (tdta0x7f20640048b0) to UDP 10.10.3.77:5060:<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.10.3.77:5060;rport=5060;received=10.10.3.77;branch=z9hG4bK259bf4a5<br>Call-ID:
 4ab61803-46e1-40e1-98be-a78db0194774<br>From: "unknown" &lt;sip:unknown <at> 10.10.3.77&gt;;tag=as6f7c1371<br>To: &lt;sip:sip:321 <at> 10.10.3.150&gt;;tag=3b9c5916-6bdb-45d6-b666-15a37784047d<br>CSeq: 105 NOTIFY<br>Contact: &lt;sip:321 <at> 10.10.3.150:5060&gt;<br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Content-Length:&nbsp; 0<br><br><br>--end msg--<br>^C<br><br><br><br><br><br>
</td></tr></table></div>
Thomas Martin | 7 Apr 2011 02:28
Picon
Picon

Assertion failed: (entry->_timer_id < 1)

Hello Everybody,

attached, please find a LOG snippet documenting an assertion in file ../src/pj/timer.c, line 466.

What happened ? Is this something that I have caused by any "misbehaviour/misprogramming" ?

Thanks in advance!

Cheers,

Thomas


 02:20:17.750  pjsua_media.c  Closing sound device after idle for 1 seconds
 02:20:17.753  pjsua_media.c  Closing iPhone IO device sound playback device and iPhone IO device sound capture device
 02:20:17.825 coreaudio_dev.  core audio stream stopped
 02:20:18.538 sip_endpoint.c  Processing incoming message: Response msg 407/INVITE/cseq=30433 (rdata0x90b614)
 02:20:18.538   pjsua_core.c  RX 496 bytes Response msg 407/INVITE/cseq=30433 (rdata0x90b614) from UDP 217.218.219.220:5060:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 10.0.1.4:64786;received=84.73.206.128;rport=47200;branch=z9hG4bKPj7T2tDIvqtHGZX8T71ieLeEW6cSFUqxKG
Call-ID: P39KZzbyn4AibHInXKHh14c7Y.3WvqaO
CSeq: 30433 INVITE
Proxy-Authenticate: Digest realm="sipgate.de", nonce="4d9d04301ecbe99222b557a73ab7baa84bee5a28"
Content-Length: 0


--end msg--
 02:20:18.538    tsx0x994a64  Incoming Response msg 407/INVITE/cseq=30433 (rdata0x90b614) in state Calling
 02:20:18.538       endpoint  Request msg ACK/cseq=30433 (tdta0x9ee000) created.
 02:20:18.538   pjsua_core.c  TX 395 bytes Request msg ACK/cseq=30433 (tdta0x9ee000) to UDP 217.218.219.220:5060:
Via: SIP/2.0/UDP 10.0.1.4:64786;rport;branch=z9hG4bKPj7T2tDIvqtHGZX8T71ieLeEW6cSFUqxKG
Max-Forwards: 70
Call-ID: P39KZzbyn4AibHInXKHh14c7Y.3WvqaO
CSeq: 30433 ACK
Content-Length:  0


--end msg--
 02:20:18.541       endpoint  Request msg CANCEL/cseq=30433 (tdta0x9c3e00) created.
 02:20:18.541    inv0xa05664  Sending Request msg CANCEL/cseq=30433 (tdta0x9c3e00)
 02:20:18.541    dlg0xa05664  Sending Request msg CANCEL/cseq=30433 (tdta0x9c3e00)
 02:20:18.541    tsx0x8cf664  Transaction created for Request msg CANCEL/cseq=30433 (tdta0x9c3e00)
 02:20:18.541    tsx0x8cf664  Sending Request msg CANCEL/cseq=30433 (tdta0x9c3e00) in state Null
 02:20:18.542       endpoint  Request msg CANCEL/cseq=30433 (tdta0x9c3e00): skipping target resolution because address is already set
 02:20:18.542   pjsua_core.c  TX 379 bytes Request msg CANCEL/cseq=30433 (tdta0x9c3e00) to UDP 217.218.219.220:5060:
Via: SIP/2.0/UDP 10.0.1.4:64786;rport;branch=z9hG4bKPj7T2tDIvqtHGZX8T71ieLeEW6cSFUqxKG
Max-Forwards: 70
Call-ID: P39KZzbyn4AibHInXKHh14c7Y.3WvqaO
CSeq: 30433 CANCEL
User-Agent: SIP020
Content-Length:  0


--end msg--
 02:20:18.546    tsx0x994a64  State changed from Calling to Completed, event=RX_MSG
 02:20:18.547    tsx0x8cf664  State changed from Null to Calling, event=TX_MSG
 02:20:18.549    dlg0xa05664  Transaction tsx0x8cf664 state changed to Calling
 02:20:18.551    dlg0xa05664  Received Response msg 407/INVITE/cseq=30433 (rdata0x90b614)
 02:20:18.551    dlg0xa05664  Transaction tsx0x994a64 state changed to Completed
 02:20:18.553    dlg0xa05664  Session count dec to 1 by mod-invite
 02:20:18.553   tdta0xa18400  Destroying txdata Request msg INVITE/cseq=30433 (tdta0xa18400)
Assertion failed: (entry->_timer_id < 1), function pj_timer_heap_schedule, file ../src/pj/timer.c, line 466.
Program received signal:  “SIGABRT”.

<div>
<div>Hello Everybody,</div>
<div><br></div>
<div>attached, please find a LOG snippet documenting an assertion in&nbsp;file ../src/pj/timer.c, line 466.</div>
<div><br></div>
<div>What happened ? Is this something that I have caused by any "misbehaviour/misprogramming" ?</div>
<div><br></div>
<div>Thanks in advance!</div>
<div><br></div>
<div>Cheers,</div>
<div><br></div>
<div>Thomas</div>
<div><br></div>
<div><br></div>
<div>&nbsp;02:20:17.750&nbsp; pjsua_media.c&nbsp; Closing sound device after idle for 1 seconds</div>
<div>&nbsp;02:20:17.753&nbsp; pjsua_media.c&nbsp; Closing iPhone IO device sound playback device and iPhone IO device sound capture device</div>
<div>&nbsp;02:20:17.825 coreaudio_dev.&nbsp; core audio stream stopped</div>
<div>&nbsp;02:20:18.538 sip_endpoint.c&nbsp; Processing incoming message: Response msg 407/INVITE/cseq=30433 (rdata0x90b614)</div>
<div>&nbsp;02:20:18.538 &nbsp; pjsua_core.c&nbsp; RX 496 bytes Response msg 407/INVITE/cseq=30433 (rdata0x90b614) from UDP 217.218.219.220:5060:</div>
<div>SIP/2.0 407 Proxy Authentication Required</div>
<div>Via: SIP/2.0/UDP 10.0.1.4:64786;received=84.73.206.128;rport=47200;branch=z9hG4bKPj7T2tDIvqtHGZX8T71ieLeEW6cSFUqxKG</div>
<div>From: <a href="sip:abcdefghijk <at> sipgate.de;tag=nH-2VrnyIvwyIlDaONUfLxta2R5WOWpS">sip:abcdefghijk <at> sipgate.de;tag=nH-2VrnyIvwyIlDaONUfLxta2R5WOWpS</a>
</div>
<div>To: <a href="sip:01234567890 <at> sipgate.de;user=phone;tag=fe1721141f05bd30d4b50c70da3ae228.a16f">sip:01234567890 <at> sipgate.de;user=phone;tag=fe1721141f05bd30d4b50c70da3ae228.a16f</a>
</div>
<div>Call-ID: P39KZzbyn4AibHInXKHh14c7Y.3WvqaO</div>
<div>CSeq: 30433 INVITE</div>
<div>Proxy-Authenticate: Digest realm="<a href="http://sipgate.de">sipgate.de</a>", nonce="4d9d04301ecbe99222b557a73ab7baa84bee5a28"</div>
<div>Content-Length: 0</div>
<div><br></div>
<div><br></div>
<div>--end msg--</div>
<div>&nbsp;02:20:18.538&nbsp; &nbsp; tsx0x994a64&nbsp; Incoming Response msg 407/INVITE/cseq=30433 (rdata0x90b614) in state Calling</div>
<div>&nbsp;02:20:18.538 &nbsp; &nbsp; &nbsp; endpoint&nbsp; Request msg ACK/cseq=30433 (tdta0x9ee000) created.</div>
<div>&nbsp;02:20:18.538 &nbsp; pjsua_core.c&nbsp; TX 395 bytes Request msg ACK/cseq=30433 (tdta0x9ee000) to UDP 217.218.219.220:5060:</div>
<div>ACK <a href="sip:01234567890 <at> sipgate.de;user=phone">sip:01234567890 <at> sipgate.de;user=phone</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP 10.0.1.4:64786;rport;branch=z9hG4bKPj7T2tDIvqtHGZX8T71ieLeEW6cSFUqxKG</div>
<div>Max-Forwards: 70</div>
<div>From: <a href="sip:abcdefghijk <at> sipgate.de;tag=nH-2VrnyIvwyIlDaONUfLxta2R5WOWpS">sip:abcdefghijk <at> sipgate.de;tag=nH-2VrnyIvwyIlDaONUfLxta2R5WOWpS</a>
</div>
<div>To: <a href="sip:01234567890 <at> sipgate.de;user=phone;tag=fe1721141f05bd30d4b50c70da3ae228.a16f">sip:01234567890 <at> sipgate.de;user=phone;tag=fe1721141f05bd30d4b50c70da3ae228.a16f</a>
</div>
<div>Call-ID: P39KZzbyn4AibHInXKHh14c7Y.3WvqaO</div>
<div>CSeq: 30433 ACK</div>
<div>Content-Length:&nbsp; 0</div>
<div><br></div>
<div><br></div>
<div>--end msg--</div>
<div>&nbsp;02:20:18.541 &nbsp; &nbsp; &nbsp; endpoint&nbsp; Request msg CANCEL/cseq=30433 (tdta0x9c3e00) created.</div>
<div>&nbsp;02:20:18.541&nbsp; &nbsp; inv0xa05664&nbsp; Sending Request msg CANCEL/cseq=30433 (tdta0x9c3e00)</div>
<div>&nbsp;02:20:18.541&nbsp; &nbsp; dlg0xa05664&nbsp; Sending Request msg CANCEL/cseq=30433 (tdta0x9c3e00)</div>
<div>&nbsp;02:20:18.541&nbsp; &nbsp; tsx0x8cf664&nbsp; Transaction created for Request msg CANCEL/cseq=30433 (tdta0x9c3e00)</div>
<div>&nbsp;02:20:18.541&nbsp; &nbsp; tsx0x8cf664&nbsp; Sending Request msg CANCEL/cseq=30433 (tdta0x9c3e00) in state Null</div>
<div>&nbsp;02:20:18.542 &nbsp; &nbsp; &nbsp; endpoint&nbsp; Request msg CANCEL/cseq=30433 (tdta0x9c3e00): skipping target resolution because address is already set</div>
<div>&nbsp;02:20:18.542 &nbsp; pjsua_core.c&nbsp; TX 379 bytes Request msg CANCEL/cseq=30433 (tdta0x9c3e00) to UDP 217.218.219.220:5060:</div>
<div>CANCEL <a href="sip:01234567890 <at> sipgate.de;user=phone">sip:01234567890 <at> sipgate.de;user=phone</a> SIP/2.0</div>
<div>Via: SIP/2.0/UDP 10.0.1.4:64786;rport;branch=z9hG4bKPj7T2tDIvqtHGZX8T71ieLeEW6cSFUqxKG</div>
<div>Max-Forwards: 70</div>
<div>From: <a href="sip:abcdefghijk <at> sipgate.de;tag=nH-2VrnyIvwyIlDaONUfLxta2R5WOWpS">sip:abcdefghijk <at> sipgate.de;tag=nH-2VrnyIvwyIlDaONUfLxta2R5WOWpS</a>
</div>
<div>To: <a href="sip:01234567890 <at> sipgate.de;user=phone">sip:01234567890 <at> sipgate.de;user=phone</a>
</div>
<div>Call-ID: P39KZzbyn4AibHInXKHh14c7Y.3WvqaO</div>
<div>CSeq: 30433 CANCEL</div>
<div>User-Agent: SIP020</div>
<div>Content-Length:&nbsp; 0</div>
<div><br></div>
<div><br></div>
<div>--end msg--</div>
<div>&nbsp;02:20:18.546&nbsp; &nbsp; tsx0x994a64&nbsp; State changed from Calling to Completed, event=RX_MSG</div>
<div>&nbsp;02:20:18.547&nbsp; &nbsp; tsx0x8cf664&nbsp; State changed from Null to Calling, event=TX_MSG</div>
<div>&nbsp;02:20:18.549&nbsp; &nbsp; dlg0xa05664&nbsp; Transaction tsx0x8cf664 state changed to Calling</div>
<div>&nbsp;02:20:18.551&nbsp; &nbsp; dlg0xa05664&nbsp; Received Response msg 407/INVITE/cseq=30433 (rdata0x90b614)</div>
<div>&nbsp;02:20:18.551&nbsp; &nbsp; dlg0xa05664&nbsp; Transaction tsx0x994a64 state changed to Completed</div>
<div>&nbsp;02:20:18.553&nbsp; &nbsp; dlg0xa05664&nbsp; Session count dec to 1 by mod-invite</div>
<div>&nbsp;02:20:18.553 &nbsp; tdta0xa18400&nbsp; Destroying txdata Request msg INVITE/cseq=30433 (tdta0xa18400)</div>
<div>Assertion failed: (entry-&gt;_timer_id &lt; 1), function pj_timer_heap_schedule, file ../src/pj/timer.c, line 466.</div>
<div>Program received signal:&nbsp; &ldquo;SIGABRT&rdquo;.</div>
<div><br></div>
</div>
Peter Lukac | 7 Apr 2011 11:48
Picon

alsa driver: real-time priority

Hi all,

Can me somebody explain why is in capture thread (alsa driver) set real-time 
priority? This thread only save data from microphone to buffer. I think is 
better increase playback thread which send data to driver and care about 
conference bridge. I'm try experiment with this and set priority in playback 
thread when CPU was overloaded was enough.

thanks


Gmane