Hi I'm trying to set up some tests using pjsua2 and pytest. However I encountered some problems with EndPoints and Accounts. I took the standard pjsua2 Python demo (https://www.pjsip.org/docs/book-latest/html/intro_pjsua2.html#using-in-python-application) and tried to make some structure of it. The example below works fine. However if I make the created
EndPoint object global by removing the "#", then the "onRegState" callback is not called. Why? My problem is that if I try to use the same EndPoint for two
tests with two different accounts, then my account classes does
not work.
import time
-- -------------------- Med Liberalistiske Hilsner ---------------------- Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49 Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk |
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org