[sip-comm-dev] Register SIP account


#1

Hi! Im implementing a call forwarding feature using SIP communicator..

I want to forward the call to the current location of the owner by
registering the owner's SIP id on the SIP communicator running on that room.
Is there a way I can register a SIP account by just knowing the SIP account
ID ( i.e SIP:1000@10.40.17.144 <SIP%3A1000@10.40.17.144>)?

I've tried using : initRegistrarConnection((SipAccountID)
SIP:usrname@IP<SIP%3A1000@10.40.17.144>);
but its not working..
How can I use sipRegistrarConnection.register();?

Your response would be very much appreciated.
Thank you so much.


#2

Hello Matet,

matet sacro-lacap wrote:

Hi! Im implementing a call forwarding feature using SIP communicator..

I want to forward the call to the current location of the owner by
registering the owner's SIP id on the SIP communicator running on that room.
Is there a way I can register a SIP account by just knowing the SIP
account ID ( i.e SIP:1000@10.40.17.144 <mailto:SIP%3A1000@10.40.17.144>)?

I am not sure I understand your question, but if you are asking whether
a SIP URI could be enough for you to register on a SIP server, then the
answer is: Yes, it could be (although it also depends on the server
configuration).

Have a look at our SIP account wizard. It would normally create SIP
accounts by only requiring an ID and a password by making a number of
assumptions. You could use the code there as an example.

Hope this helps!

Emil

P.S. There are hundreds of subscribes on this list so sending empty
"test" messages is not very appropriate. Simply sending your query
should be enough.

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Thanks for the response..:slight_smile:

Is there a way I can register a SIP account without actually selecting
"online" with the use of a mouse? I want to implement something like:

if(condition 1)
        register sip:xxxx@IP
else
        register sip:yyyy@IP

Thanks! :slight_smile:

···

On Mon, Feb 23, 2009 at 12:21 AM, Emil Ivov <emcho@sip-communicator.org>wrote:

Hello Matet,

matet sacro-lacap wrote:
> Hi! Im implementing a call forwarding feature using SIP communicator..
>
> I want to forward the call to the current location of the owner by
> registering the owner's SIP id on the SIP communicator running on that
room.
> Is there a way I can register a SIP account by just knowing the SIP
> account ID ( i.e SIP:1000@10.40.17.144 <SIP%3A1000@10.40.17.144><mailto:
SIP%3A1000@10.40.17.144 <SIP%253A1000@10.40.17.144>>)?

I am not sure I understand your question, but if you are asking whether
a SIP URI could be enough for you to register on a SIP server, then the
answer is: Yes, it could be (although it also depends on the server
configuration).

Have a look at our SIP account wizard. It would normally create SIP
accounts by only requiring an ID and a password by making a number of
assumptions. You could use the code there as an example.

Hope this helps!

Emil

P.S. There are hundreds of subscribes on this list so sending empty
"test" messages is not very appropriate. Simply sending your query
should be enough.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi! I created a class(Search.java) in the package
net.java.sip.communicator.launcher.
Here are some lines from Search.java,

private SIPAccountRegistrationWizard sipAccountRegWiz;
private ProtocolProviderService pps;

String userName="1000@IP";
String passWord= "******";

//this line gives an error
pps = sipAccountRegWiz.signin(userName, passWord);

08:17:44.433 SEVERE: util.UtilActivator.uncaughtException().81 An uncaught
exception occurred in thread=Thread[Timer-0,5,main] and message was:
net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard
java.lang.NoClassDefFoundError:
net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard
        at net.java.sip.communicator.launcher.Search.<init>(Search.java:180)

Help! :frowning: How can I fix this error?.. :frowning:

···

On Mon, Feb 23, 2009 at 12:24 AM, matet sacro-lacap <matet.sacro@gmail.com>wrote:

Thanks for the response..:slight_smile:

Is there a way I can register a SIP account without actually selecting
"online" with the use of a mouse? I want to implement something like:

if(condition 1)
        register sip:xxxx@IP
else
        register sip:yyyy@IP

Thanks! :slight_smile:

On Mon, Feb 23, 2009 at 12:21 AM, Emil Ivov <emcho@sip-communicator.org>wrote:

Hello Matet,

matet sacro-lacap wrote:
> Hi! Im implementing a call forwarding feature using SIP communicator..
>
> I want to forward the call to the current location of the owner by
> registering the owner's SIP id on the SIP communicator running on that
room.
> Is there a way I can register a SIP account by just knowing the SIP
> account ID ( i.e SIP:1000@10.40.17.144 <SIP%3A1000@10.40.17.144><mailto:
SIP%3A1000@10.40.17.144 <SIP%253A1000@10.40.17.144>>)?

I am not sure I understand your question, but if you are asking whether
a SIP URI could be enough for you to register on a SIP server, then the
answer is: Yes, it could be (although it also depends on the server
configuration).

Have a look at our SIP account wizard. It would normally create SIP
accounts by only requiring an ID and a password by making a number of
assumptions. You could use the code there as an example.

Hope this helps!

Emil

P.S. There are hundreds of subscribes on this list so sending empty
"test" messages is not very appropriate. Simply sending your query
should be enough.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net