ipodsound.c , is this still a valid audiodevice?

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

 



Hi,

I've been hacking away trying to follow the various instructions to  
get pjsip to compile for the iphone. Although I can successfully  
compile, I've not had a lot of instructions getting ipodsound.c from  
siphon to register itself as an audiodevice.

http://code.google.com/p/siphon/ I'm using ipodsound.c from here

and

http://siphon.googlecode.com/files/ipodsound.20080519.c

and

the latest pjproject-1.0.x tree

Some initial observations suggest that there might be some changes to  
the pjmedia api since the instructions up on the google code site ,  
notable that SOUND_OBJS  appears to be missing from PJMEDIA_OBJS in  
the make file.

So I add this back in, and it does appear to compile correctly, but  
using sample code from the simple pjsua example, it appears that it  
can't find the device.

The question I have then, is , is this ipodsound.c file the siphone  
project uses still compatible with the current iiteration of pjmedia,  
and if it is, is there any special prodding or tinkering required to  
get it to function as a device? It would strike me that it needs to be  
initialised to register itself, but I cant really see where or how I'm  
supposed to do that.

Heres some logs, I'm not sure how helpful they are however.

  19:08:21.503 os_core_unix.c  pjlib 1.3-trunk for POSIX initialized
  19:08:21.561 sip_endpoint.c  Creating endpoint instance...
  19:08:21.567          pjlib  select() I/O Queue created (0x6f0094)
  19:08:21.568 sip_endpoint.c  Module "mod-msg-print" registered
  19:08:21.568 sip_transport.  Transport manager created.
2009-07-19 19:08:21.569 sipContract[980:207] ffffffff
2009-07-19 19:08:21.580 sipContract[980:207] Done
  19:08:21.587 sip_endpoint.c  Module "mod-pjsua-log" registered
  19:08:21.589 sip_endpoint.c  Module "mod-tsx-layer" registered
  19:08:21.589 sip_endpoint.c  Module "mod-stateful-util" registered
  19:08:21.590 sip_endpoint.c  Module "mod-ua" registered
  19:08:21.592 sip_endpoint.c  Module "mod-100rel" registered
  19:08:21.592 sip_endpoint.c  Module "mod-pjsua" registered
  19:08:21.593 sip_endpoint.c  Module "mod-invite" registered
  19:08:21.597          pjlib  select() I/O Queue created (0x84d614)
  19:08:21.775 sip_endpoint.c  Module "mod-evsub" registered
  19:08:21.777 sip_endpoint.c  Module "mod-presence" registered
  19:08:21.777 sip_endpoint.c  Module "mod-refer" registered
  19:08:21.778 sip_endpoint.c  Module "mod-pjsua-pres" registered
  19:08:21.779 sip_endpoint.c  Module "mod-pjsua-im" registered
  19:08:21.779 sip_endpoint.c  Module "mod-pjsua-options" registered
  19:08:21.780   pjsua_core.c  1 SIP worker threads created
  19:08:21.780   pjsua_core.c  pjsua version 1.3-trunk for arm-apple- 
darwin9 initialized
  19:08:21.780  pjsua_media.c  Error retrieving default audio device  
parameters: Unable to find default audio device  
(PJMEDIA_EAUD_NODEFDEV) [status=420006]
  19:08:21.787   pjsua_core.c  SIP UDP socket reachable at 10.1.1.5:5060
  19:08:21.788 sip_transport_  Error setting SO_RCVBUF: No buffer  
space available [120055]
  19:08:21.788 sip_transport_  Error setting SO_SNDBUF: No buffer  
space available [120055]
  19:08:21.789    udp0x847c00  SIP UDP transport started, published  
address is 10.1.1.5:5060
Got 0 audio devices # <---- This is from running some code from the  
documentation to list audio devices.
  19:08:21.796  pjsua_media.c  RTP socket reachable at 10.1.1.5:4000
  19:08:21.796  pjsua_media.c  RTCP socket reachable at 10.1.1.5:4001
  19:08:21.802  pjsua_media.c  RTP socket reachable at 10.1.1.5:4002
  19:08:21.802  pjsua_media.c  RTCP socket reachable at 10.1.1.5:4003
  19:08:21.808  pjsua_media.c  RTP socket reachable at 10.1.1.5:4004
  19:08:21.808  pjsua_media.c  RTCP socket reachable at 10.1.1.5:4005
  19:08:21.814  pjsua_media.c  RTP socket reachable at 10.1.1.5:4006
  19:08:21.814  pjsua_media.c  RTCP socket reachable at 10.1.1.5:4007
  19:08:21.816    pjsua_acc.c  Account sip:Iphone at 10.1.1.2 added with  
id 0
  19:08:21.821   pjsua_core.c  TX 367 bytes Request msg REGISTER/ 
cseq=38996 (tdta

and later..

  19:08:21.823    pjsua_acc.c  Registration sent
  19:08:21.823  pjsua_media.c  Error retrieving default audio device  
parameters: Unable to find default audio device  
(PJMEDIA_EAUD_NODEFDEV) [status=420006]
  19:08:21.824            APP  Error making call: Unable to find  
default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]
  19:08:21.837      sip_reg.c  Unable to send request, regc has  
another transaction pending
  19:08:21.838    pjsua_acc.c  Unable to create/send REGISTER: Object  
is busy (PJSIP_EBUSY) [status=171001]
  19:08:22.179   pjsua_core.c  Shutting down...
  19:08:22.180   pjsua_core.c  RX 402 bytes Response msg 100/REGISTER/ 
cseq=38996 (rdata0x85b064) from UDP 10.1.1.2:5060:

I'm sure I'm just doing something hilariously newbish, so I apologise  
in advance for that.

Thankyou for your patience,
Shayne.

===================================
Shayne O'Neill Development
Mobile, Web and Business process integration.
shayne.oneill at gmail.com
Ask me about how Alfresco can help your business grow.




[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