Backgrounding on iOS for invite requests.

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

 



Take a look at the reference code supplied for iOS in the pjsip-apps/src/ipjsua directory from trunk
to see how backgrounding can be implemented.

The important part is adding the keepalive functions etc. that are run when the
app is notified about being sent to the background.


Best regards,
Even Andr?

On 20. jan. 2011, at 17.46, Alejandro Orellana wrote:

> Hi Mr Gecko and All
> i am  having the same problem, i.e.  once in background i don't get  any notification that i have and incoming tcp call.
> but if  bring the app to the front manually  i get this and all works from that point on
> 
> 2011-01-20 11:33:04.066 Savant[19766:8e03]  11:33:04.066    tcplis:5060  TCP listener 10.5.200.82:5060: got incoming TCP connection from 10.5.200.6:59151, sock=5
> 2011-01-20 11:33:04.067 Savant[19766:8e03]  11:33:04.067   tcps0x99da14  TCP server transport created
> 2011-01-20 11:33:04.075 Savant[19766:8e03]  11:33:04.075                 Success  configuration TCP transport for VoIP usage. Background mode will be supported.
> 2011-01-20 11:33:04.077 Savant[19766:8e03]  11:33:04.076   pjsua_core.c  RX 983 bytes Request msg INVITE/cseq=1 (rdata0x99dbbc) from tcp 10.5.200.6:59151:
> INVITE sip:9898 at 10.5.200.82;transport=tcp SIP/2.0
> Via: SIP/2.0/TCP 10.5.200.6:49464;branch=z9hG4bK-d8754z-ef2b5650d5a51367-1---d8754z-;rport
> 
> am i missing something?
> 
> should my app call  showNotification () ..or this will be called by pjsip.  ???
> 
> BTW i am using pjsua library in my app.
> 
>   my app is running on iPad iOS 4.2.1. i have followed all the pointer given in this list. still with no success.
> 
> any comments ideas would be much appreciated
> 
> thanks in advance
> 
> On Oct 15, 2010, at 5:59 PM, Mr. Gecko wrote:
> 
>> Hello. I am having a problem and can't seem to find help on the internet. I am developing on my device as I know that you guys said it won't work on the simulator. I am using a TCP transport to talk to the server and I did not get any failed messages. I believe I am experiencing problem number 4 on the wiki, "Check whether you can accept the incoming call by bringing the app to the foreground. If yes, make sure that the incoming call request comes from the wrapped TCP socket (check the log for the INVITE request).". The invite is below once I bring back up the app.
>> 
>> 16:49:10.420   tcplis:51002  TCP listener 192.168.62.15:51002: got incoming TCP connection from 192.168.62.12:51320, sock=23
>> 16:49:10.421   tcps0x86c214  TCP server transport created
>> 16:49:10.427                 Successfully configured TCP transport for VoIP usage. Background mode will be supported.
>> 16:49:10.428 sip_endpoint.c  Processing incoming message: Request msg INVITE/cseq=26590 (rdata0x86c3bc)
>> 16:49:10.428   pjsua_core.c  RX 1375 bytes Request msg INVITE/cseq=26590 (rdata0x86c3bc) from tcp 192.168.62.12:51320:
>> INVITE sip:+15555555555 at 192.168.62.15:51002;transport=TCP SIP/2.0
>> Record-Route: <sip:192.168.62.12;transport=tcp;r2=on;lr=on>
>> Record-Route: <sip:192.168.62.12;r2=on;lr=on>
>> Via: SIP/2.0/TCP 192.168.62.12;branch=z9hG4bK197b.ff1f52e6.0
>> Via: SIP/2.0/UDP 192.168.62.16:64417;received=192.168.62.16;rport=64417;branch=z9hG4bKPjwOJM-S3Ujo17tiktD-UhFxLKlHiYDmDp
>> 
>> I do have it register every 600 seconds as demonstrated in the demo app, and I am pretty sure I have all the stuff working right. When I am in a call, it appears to work in the background as expected. (Although, I'll like to add the call banner, which I don't think PJProject has anything to do with that.) I am testing on a local test server, opensips, that supports tcp so I am sure that it is working right.
>> _______________________________________________
>> 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
> 
> ------
> Alejandro Orellana
> Savant Systems, LLC
> 770 Main Street
> Osterville, Ma. 02655
> (508) 683-2547 (W)
> (508) 683-2647 (F)
> Alejandro.Orellana at savantav.com
> 
> Statement of Confidentiality
> The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.
> 
> 
> 
> 
> Statement of Confidentiality
> The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any.
> 
> 
> _______________________________________________
> 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

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


[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