[pjsip] py_pjsua error when registering an account

Gideon Klompje gideonk at bizcall.co.za
Mon Sep 17 10:20:55 EDT 2007



It seems there's a problem when adding a new SIP account.  The code
snippet (from "pjsua_app.py", which is pretty much what I use as a
template for registration purposes) is:


# Configure account configuration

acc_cfg = py_pjsua.acc_config_default()

acc_cfg.id = "sip:" + acc_username + "@" + acc_domain

acc_cfg.reg_uri = "sip:" + acc_domain

acc_cfg.cred_count = 1


This gives the following error:


            AttributeError: 'py_pjsua.Acc_Config' object has no
attribute 'cred_count'


My code follows pretty much the same layout as "pjsua_app.py", which
gives the above error.  Is this a bug in the "py_pjsua" module, or does
"pjsua_app.py" just not reflect some change in the source?


Thanks in advance,



Gideon Klompje
Subsidiary of Vox Telecom Limited
Block B, Rutherford Estate
1 Scott Street
tel: +27 800 BIZCALL
direct: +27 11 809 1656
mobile: +27 84 560 0200
fax: +27 86 524 2014
email: gideonk at bizcall.co.za <mailto:gideonk at bizcall.co.za> 
http://www.bizcall.co.za <http://www.bizcall.co.za/>  

Disclaimer: BizCall does not accept responsibility or liability for the
unauthorised use of its e-mail facility and/or opinions relating to bona
fide company matters.  Save for statements and/or opinions relating to
bona fide company matters, Bizcall denies responsibility or liability
for the contents of this communication.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20070917/df79592b/attachment.html>

More information about the pjsip mailing list