pjsip and iOS5

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

 



oh sorry, I forget to use a free test account
Even after inserting the free test account information and clicking on connect crash the application on simulator. It seems the account id is 0 though i think pjsip
automatically assigns an account id, isn't it?

Below is the respective crash message

Assertion failed: (acc_id>=0 && acc_id<(int)(sizeof(pjsua_var.acc)/sizeof(pjsua_var.acc[0]))), function pjsua_acc_set_registration, file ../src/pjsua-lib/pjsua_acc.c, line 2160.

Thanks



On 26-Jul-2012, at 6:59 PM, Chakrit Wichian wrote:

Cool! :) If it's invalid I think you might be using the wrong credentials and/or sip domain.

or maybe the server requires a specific authentication method?

In the library it's just hard-coded to digets w/ plain text password right now.

- chakrit
http://chakrit.net


On Thursday, July 26, 2012 at 8:14 PM, Parvez Qureshi wrote:

One need to also set the environment variables as below in order to use this library on
simulator
export DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2
export CFLAGS="-O2 -m32 -miphoneos-version-min=5.1" LDFLAGS="-O2 -m32"
export ARCH="-arch i686"

I am able to compile it for simulator. Also removed the G729 related entries in build-pjsip.
Trying to do a connect followed by a Make a call after selecting one of the two accounts
but after it changes status from Connecting?. to invalid account info.
This is happening on simulator
Am I doing anything wrong?

Thanks
On 26-Jul-2012, at 6:29 PM, Chakrit Wichian wrote:

I *think* it will. but I'm not sure.

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


On Thursday, July 26, 2012 at 7:47 PM, Parvez Qureshi wrote:

it seems your sample is compilable for iOS device only.
Is changing arch entry in build-pjsip for simulator, will compile it for simulator too?

Thanks

On 26-Jul-2012, at 5:22 PM, Chakrit Wichian wrote:

Yeah. you can a free one from getonsip.com<http://getonsip.com/> or the like.

You gotta pay for landline numbers but free online-only calls are not hard to find.

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


On Thursday, July 26, 2012 at 6:51 PM, Parvez Qureshi wrote:

Thanks for that info
Even though the sdk is free after removing that g729 information still then one need to buy sip accounts in order to
make this working, right?

Thanks



On 26-Jul-2012, at 2:29 PM, Chakrit Wichian wrote:

There is a G729 codec part included, which requires a license.
You can remove the g729 part by modifying the build-pjsip script i think.

Other than that, I havn't been bothered to put up any license requirement for it.
Let's just say it's in public domain for now :)

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


On Thursday, July 26, 2012 at 3:56 PM, Parvez Qureshi wrote:

I am be able to build for iOS device now. Will let you know about its results. I also would like to know about its usage in my Xcode project
is it free to use?

On 26-Jul-2012, at 12:00 PM, Chakrit Wichian wrote:

Ah, I've just tried the download it doesn't include submodule by default.

I think you can just download the sources yourself from here:
https://github.com/chakrit/pjsip

and put it in the pjsip/source folder where it's expected.

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


On Thursday, July 26, 2012 at 12:11 PM, Parvez Qureshi wrote:

I have downloaded the zip file from github so in which directory should i do
git submodule init && git submodule update` command?

Thanks
On 25-Jul-2012, at 8:12 PM, Chakrit Wichian wrote:

Hi.

finally at home! I only has this in the script:

export ARCH="-arch armv7"

and when I do `./configure-iphone` in the pjsip sources, it use the correct compiler.

BTW I think maybe you haven't checked out the sip source submodule?
i.e. have you `git submodule init && git submodule update` ?
Maybe that's why there's nothing there.

- chakrit


On Wednesday, July 25, 2012 at 8:56 PM, Parvez Qureshi wrote:

Meanwhile can you please suggest the export settings for iOS device i.e.
what values to use for:
export DEVPATH
export CC
export CXX
export CFLAGS
export LDFLAGS

The sdk is ios 5.1 in xcode 4.3.3 on mac os x 10.7.4.

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: Wednesday, July 25, 2012 5:39 PM
To: pjsip list
Subject: Re: pjsip and iOS5

Hmmm, I will check again for you in a few hrs.

I think maybe the include path in the xcode project maybe wrong.

- chakrit

On Jul 25, 2012, at 19:07, Parvez Qureshi <parvez.qureshi at decurtis.com<mailto:parvez.qureshi at decurtis.com>> wrote:

Sorry for sending such small chunks of replies but here I see
config_site.h file already there under pjsip folder and there is no pjlib folder too.
________________________________
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: Wednesday, July 25, 2012 5:18 PM
To: pjsip list
Subject: Re: pjsip and iOS5

Hmm, I'm not sure.

Can you try copying the config_site.h file into the folder manually? BTW the script is not configured to build a simulator-compatible version you might have better luck on actual devices.

I'm heading out of office right now. Will check again when I'm home.

Its very beta-quality atm. so YMMV you might need to configure it a bit before it'll builds but it does works on my machine (and iPhone 4s)

- chakrit

On Jul 25, 2012, at 18:40, Parvez Qureshi <parvez.qureshi at decurtis.com<mailto:parvez.qureshi at decurtis.com>> wrote:

ok
After this I go to compiling your sample xcode project for simulator. Again it gives compilation error for
#import <pj/config_site.h> saying pj/config_site.h file not found. Am I missing any other step?
________________________________
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: Wednesday, July 25, 2012 5:05 PM
To: pjsip list
Subject: Re: pjsip and iOS5

If you run the build-pjsip script, it'll copy the config_site.h file in the same folder into place automatically.

The actual pjsip source is in the pjsip/source folder.

- chakrit


On Wednesday, July 25, 2012 at 6:33 PM, Parvez Qureshi wrote:

After running ./build-pjsip using terminal, I do not find pjlib directory where to copy the config_site.h file in your checked project from github.
________________________________
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: Wednesday, July 25, 2012 4:17 PM
To: pjsip list
Subject: Re: pjsip and iOS5

Hi Parvez,

I am also building a PJSIP client application on iOS5.
You can check out what I have been working on on GitHub:
https://github.com/chakrit/gossip

- chakrit


On Wednesday, July 25, 2012 at 5:45 PM, Parvez Qureshi wrote:

hello all
I am be able to compile the pjsip sdk version 1.14.2 for iOS 5.1 using Xcode 4.3.3 on mac os x 10.7.4 for iphone simulator using the below given settings [All commands are run on terminal]:

export DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2
export CFLAGS="-O2 -m32 -miphoneos-version-min=5.1" LDFLAGS="-O2 -m32"
export ARCH="-arch i686"
./configure-iphone
make dep && make clean && make

There are a few questions:
1. Can I make voice call using pjsip in ios5?
2. What are the headers from pjsip do I need to include in my Xcode iOS project so that I can make/receive calls. Also in the documentation I do not find any mention on the methods from pjsip library that one can make use of for making/receiving calls.
3. What changes I need to make in above build settings in order to build this library for iOS device?

Thanks
parvez
_______________________________________________
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/20120726/c7316083/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