Hi all,
 
my application is now working, and currently it only registers one line. There 
does not seem to be any problem with handling multiple calls at the same time.
 
What I would like to do now is to extend it so it can register more than one 
line. I.e. define a few phone numbers in the PBX, which the users could call, 
and my application would handle them all. But I'm not sure what is the correct 
way to do this. In the beginning, an application must call sipxInitialize( ), 
and pass in among others an identity. But the phone numbers would probably be 
defined with different user names and passwords. Should I just pick one and use 
that to construct the identity passed to sipxInitialize?  AFAIK, then the 
sipxtapi functions should get called like this:
 
sipxInitialize( ... , identity, )
 
for every line I want to register to:
    call sipxLineAdd( ..., identity,  )
    call sipxLineAddCredential( user, pass, realm )
    call sipxLineRegister
end for
Is this correct? In my current setup I'm only using one line, so therefore the 
identity passed to sipxInitialize and to sipxLineAdd is the same. Wouldn't that 
change when I start supporting more lines?
 
Furthermore, when a call is received, I would like to know what number was 
called. I can find out from what number was called (by calling 
sipxCallGetRemoteID), but calling sipxCallGetID (which I was hoping should 
return the number that was called), doesn't return anything (boy the word 
"call" is used a lot in this sentence...). Am I misunderstanding anything here? 
 
As usual, I would welcome any insight into this :-)
 
Regards,
DanĂ­el
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to