pjsip and iOS5

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

 



Debugging issue
The below message get consoled when trying to run on the iOS Device

error: failed to launch '/Users/parvezqureshi/Library/Developer/Xcode/DerivedData/Gossip-bosdogosxmsnjmfgljxkjhroyayo/Build/Products/Debug-iphoneos/GossipExample.app/GossipExample' -- No such file or directory (/Users/parvezqureshi/Library/Developer/Xcode/DerivedData/Gossip-bosdogosxmsnjmfgljxkjhroyayo/Build/Products/Debug-iphoneos/GossipExample.app/GossipExample)

Then i need to manually run the app from the home screen of the device.



On 30-Jul-2012, at 3:46 PM, Chakrit Wichian wrote:

You just have to modify the build-pjsip script to make it builds pjsip on the simulator. (Just follow the PJSIP-provided tutorial)
Or build it yourself and replace the binaries linked in the example apps.

As for the debugging, can you be more specific? What is preventing you from debugging on an iOS device?

- chakrit
http://chakrit.net


On Monday, July 30, 2012 at 5:13 PM, Parvez Qureshi wrote:

Ok I will do more research on improving sound quality.
You haven't commented on debugging on iOS device?

Aslo do I need to set a linker flag so as to be able to run the project on simulator though the library is for device only compiled
as I want to avoid using lipo to create a fat library

Thanks

On 30-Jul-2012, at 2:46 PM, Chakrit Wichian wrote:

You can try playing with the various codecs PJSIP provides. There's some very basic UI for enabling/disabling codec in the example app.

But other than that, I think it's beyond my knowledge at this point. Maybe the PJSIP people can help you better than I do :)

- chakrit
http://chakrit.net<http://chakrit.net/>


On Monday, July 30, 2012 at 4:13 PM, Parvez Qureshi wrote:

The thing I forget to add is that I am not able to debug the application on device.
Also the sound is already too large that it seems increasing the volume for incoming/outgoing channels will not help.
Using g.729 codecs requires a license as we have discussed earlier. Can you suggest any other Codec to use instead that do not
requires any license for its use.

Thanks



On 30-Jul-2012, at 1:57 PM, Chakrit Wichian wrote:

Sorry for the late reply,

hmm, strange as I have the same NAT error message too but it all works fine with both getonsip and sip2sip.

AFAIK / heard You'll have to use G.729 for it to work reliably with good sound quality on the phone but the application I am developing have not reached that point where I can start configuring the codecs just yet.

About the volume problem, the GSCall class exposes a "setVolume" property you can use to increase the volume.

Or you can simply modify this line directly to set a higher value to see if it makes any difference:
http://www.macupdate.com/app/mac/21884/neutrino/

The specific PJSUA call is pjsua_conf_adjust_rx_level for adjusting receiving volume and pjsua_conf_adjust_tx_level for adjusting transmitting (microphone) volume. Check the source if there's a problem as I've not find a good way to automatically test these just yet.

Hope this helps.


- chakrit
http://chakrit.net<http://chakrit.net/>


On Monday, July 30, 2012 at 3:05 PM, Parvez Qureshi wrote:

It seems NAT service must be there in the network where you are trying to establish a voip sip connection. Without IP address resolution the application
will not work. After bringing two iOS devices under a NAT enabled network I am be able to connect using two sip accounts. Also there is a lot of noise/disturbance in the call and actual voice is too low and one needs a lot of concentration to understand it. Do I need to make any particular selection in the list of Codecs or any other thing to change?

Thanks



On 27-Jul-2012, at 7:08 PM, Chakrit Wichian wrote:

I got that as well. It is fine. PJSIP will still works even if there's no STUN server.

Make sure you have all the files up-to-date with what I just pushed a few mails back, not just that GSE file.

- chakrit
http://chakrit.net<http://chakrit.net/>


On Friday, July 27, 2012 at 7:53 PM, Parvez Qureshi wrote:

sorry for an incomplete info on the issue. May be it is due to this

NAT type detection failed: Invalid STUN server or server not configured (PJNATH_ESTUNINSERVER)

The above statement is also being consoled. Is it due to stun server not found or external ip address
resolution getting failed.

Thanks




On 27-Jul-2012, at 5:37 PM, Chakrit Wichian wrote:

Just replacing the file will not work. The changes I've pushed are more than just that file.

Why don't you just do a proper git checkout?

- chakrit
http://chakrit.net<http://chakrit.net/>


On Friday, July 27, 2012 at 7:02 PM, Parvez Qureshi wrote:

After replacing GSEConfigurationViewController from github and using your hard coded account information
on simulator it gives invalid account info status when tapping on connect button.
Also make call button remains disabled. Seems connect-->register process still remains
incomplete

Thanks



On 27-Jul-2012, at 4:25 PM, Chakrit Wichian wrote:

Regarding test accounts, you can just use what I hard-coded in there. Just check the GSEConfigurationViewController.m file.

About setting up 2 accounts, I have _thought_ about it and I have the checks and code in place (Theoretically you should be able to setup multiple GSAccount instances and connect them all at once.) but I havn't really put any time in testing that which is why GSUserAgent only expose one GSAccount right now.

Plus, I am not sure about the "server" part tho. I build it from the ground up intending it to be for client-side code.

About getonsip, you might want to check the spam folder. They mail servers are very low-rated IIRC.

- chakrit
http://chakrit.net<http://chakrit.net/>


On Friday, July 27, 2012 at 5:48 PM, Parvez Qureshi wrote:

it seems that the sample project with pjsip i.e. ipjsua sets up a local sip server with two accounts created. Correct me if i am wrong.

Can't we do similar things with your library?

Thanks

On 27-Jul-2012, at 1:28 PM, Chakrit Wichian wrote:

Just pushed some changes to GitHub with the fix.

I have to configure it like this for it to work:
https://github.com/chakrit/gossip/blob/master/GossipExample/GSEConfigurationViewController.m#L47

    account = [GSAccountConfiguration defaultConfiguration];
    account.address = @"chakrit at sip2sip.info<mailto:chakrit at sip2sip.info>";
    account.username = @"chakrit";
    account.password = @"tyixr52w9k";
    account.domain = @"sip2sip.info<http://sip2sip.info/>";
    account.authRealm = @"sip2sip.info<http://sip2sip.info/>";
    account.proxyServer = @"proxy.sipthor.net<http://proxy.sipthor.net/>";
    [accounts addObject:account];

Hope this helps.

- chakrit
http://chakrit.net<http://chakrit.net/>


On Friday, July 27, 2012 at 2:29 PM, Parvez Qureshi wrote:

Still getting the same crash even after making changes as described in your reply.
I also tried registering on getonsip.com<http://getonsip.com/> but so far do not receive any instruction email that signifies registration completion.


On 27-Jul-2012, at 12:52 PM, Chakrit Wichian wrote:

accConfig.publish_enabled = PJ_TRUE;

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org<http://blog.pjsip.org/>

pjsip mailing list
pjsip at lists.pjsip.org<mailto: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<mailto: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/20120730/9701f15b/attachment-0001.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