Access Point problem in PjSIP Symbian S60 3ed

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

 



Hi Pai,

I think some mistakes / misunderstood occur with my question. Let me 
explain again.

Initially when invoking PjSIP, device will pop up for selection of 
access point, which is because of  aConn.Start(). If we have given 
connection preference then we ll not get any popup's.

if ((err = aSocketServer.Connect()) != KErrNone)
    return PJ_STATUS_FROM_OS(err);

// Open up a connection
if ((err = aConn.Open(aSocketServer)) != KErrNone)
    {
    aSocketServer.Close();
    return PJ_STATUS_FROM_OS(err);
    }

if ((err = aConn.Start()) != KErrNone)
    {
    aSocketServer.Close();
    return PJ_STATUS_FROM_OS(err);
    }

I am clear with it and my problem is not with this.

At the app. launch i chooses a WLan access point from the list shown by 
device, now if i move out of range from the WLan (say 500 meters), then 
WLan connection will be disconnected.Immediately a access point list is 
shown by PjSIP to make connection.

My question here is... How PjSIP know / Monitors that a connection has 
been disconnected ? Is their any call back methods from sockets 
implemented to get the status ? Can any one pls give me the methods / 
area where this occurs ? Then how it re-initialize after connecting to a 
new access point ?

I think this time my question might be clear.


Pai Peng wrote:
> hello,
>
>
> it depends on Symbian C++. based for Symbian 3rd.
>
> Check forum nokia for auto connection with socket, there is already 
> example/code for your purpose.
>
>
> Regards
>
> Pai
>
> On Sat, Feb 7, 2009 at 10:27 AM, Srivatsan Deenadayalan 
> <srivatsan at ongobiz.com <mailto:srivatsan at ongobiz.com>> wrote:
>
>     Hi All,
>
>     I have implemented PjSIP successfully in my application, and works
>     great. Thanks for PjSIP team :-) . I have a small problem in
>     connecting with access points (WLan / GPRS / 3G).
>     When i  move out of range from a WLan access point which is used
>     by PjSIP, a pop up showing access point list is shown by the
>     device. But i don't want this access point to be shown, instead i
>     have my own methods to show and select the access points.
>
>     I have tried to destroy PjSIP when ever any interruptions occurs
>     with connections and show my list of access points then
>     reinitialize PjSIP. Before calling my methods , device access
>     point pop up list comes in to picture.
>
>     So my question is how to suppress the access point pop up which
>     comes when ever any connection interruption occurs ?  Is their any
>     way to shut down and re-initialize PjSIP during disconnection of
>     internet connection?
>
>     Please some one help me ..... :-(
>
>     -- 
>     Thanks And Regards,
>     Srivatsan.D,
>
>     _______________________________________________
>     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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   


-- 
Thanks And Regards,
Srivatsan.D,






[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