(no subject)

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

 



Greeting,

Dear all,

Folling is the example of? creating account


AccountConfig acc_cfg;
acc_cfg.idUri = "sip:test1 at pjsip.org";
MyAccount * acc = new MyAccount;
try
{
??? acc->create(acc_cfg);
}
catch(Error&err) 
{
cout<<"Account creation error:"<<err.info()<<endl;
}
The account created above doesn?t do anything except to provide identity in the ?From:? header for outgoing requests.
The account will not register to SIP server or anything.

Now about the sip:test1 at pjsip.org

is pjsip.org my ip address ?, is test1 is the Name I chose ?

in other word if I want to use the account with any sip server, I do acc_cfg.idUri = "sip:myExtention at myipaddress";

Regards

Marwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140416/86c27d1a/attachment.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