pjsip and iOS5

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

 



What version of pjsip are you using in your obj-c wrapper?



On 31-Jul-2012, at 4:53 PM, Chakrit Wichian wrote:

Hmm? setting it to 90000 cause an error:

Assertion failed: (clock_rate <= 65535), function pjmedia_wsola_create, file ../src/pjmedia/wsola.c, line 513.

After reading the source of that file, it seems that the clock rate might only be for the video device.


- chakrit
http://chakrit.net


On Tuesday, July 31, 2012 at 5:07 PM, Chakrit Wichian wrote:

Yes, that make senses. Fixing in Gossip now..

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


On Tuesday, July 31, 2012 at 4:51 PM, Parvez Qureshi wrote:

Yesterday you mentioned about changing the clock rate/soundclock rate values
>From this link
https://trac.pjsip.org/repos/changeset/3979
I see that default clock rate being used is something different than what is being used by the wrapper.
Does it makes any sense?

Thanks



On 30-Jul-2012, at 11:34 PM, Chakrit Wichian wrote:

I don't think so. That flag just toggles the availability of the G729 codec in PJSIP.

I think the default codec depends on the SIP server somewhat.
There is some negotiation going on when PJSIP connects.

I'm already at home right now. I'll try tomorrow and let you know what I can find for the default codecs.

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


On Tuesday, July 31, 2012 at 1:00 AM, Parvez Qureshi wrote:

I will give a try to this change in transport type but what I see basically so far is that transport type
is UDP by default for voip as it is much more efficient as compared to TCP.

Also I would like to ask about the following entry in config_site.h file

// enable G729
#define PJMEDIA_HAS_G729_CODEC 1

Does the above entry has anything to do with the issue of noise in call making that I am having.
Can you tell what default codec does pjsip makes use of?

Thanks
________________________________
From: pjsip-bounces@xxxxxxxxxxxxxxx<mailto:pjsip-bounces at lists.pjsip.org> [pjsip-bounces at lists.pjsip.org<mailto:pjsip-bounces at lists.pjsip.org>] on behalf of Chakrit Wichian [konshasu at chakrit.net<mailto:konshasu at chakrit.net>]
Sent: Monday, July 30, 2012 6:09 PM
To: pjsip list
Subject: Re: pjsip and iOS5

Yes, that's correct.

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


On Monday, July 30, 2012 at 7:37 PM, Parvez Qureshi wrote:

Do you want to say that I should use
GSTCPTransportType or GSTCP6TransportType instead of GSUDPTransportType
for transport type in the wrapper class?



On 30-Jul-2012, at 6:02 PM, Chakrit Wichian wrote:

Now that I've looked at that file? How about changing it to use TCP transport?
Maybe somehow your network are dropping UDP packets more aggresively than mine?

Just a wild guess though.

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


On Monday, July 30, 2012 at 7:25 PM, Chakrit Wichian wrote:

Hmm. I have no idea. It is working fine without noises here (even without G.729).

Maybe you can try configuring the clock rate and/or other media configs options?

In gossip it's done here: https://github.com/chakrit/gossip/blob/a43c0cb95e5abbe5ef1f9c3976cdbe716d69b5f2/Gossip/GSUserAgent.m#L97

I simply copied the default values from the Siphon project.

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


On Monday, July 30, 2012 at 7:20 PM, Parvez Qureshi wrote:

Tried different codecs but still not able to resolve the noise issue. There is a lot of noise in the established call.
Do you have any clue on this?



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

Hmm? not sure about that. It looks like there are build errors.

I've just updated to Xcode 4.4 btw, maybe that's the problem?

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


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

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<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<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/20120801/b722b3a5/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