// Start Pjsua as listener and register it to receive calls func TestTutOsipsCallsStartPjsuaListener(t *testing.T) { var err error acnts := []*engine.PjsuaAccount{ &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}} if tutOsipsCallsPjSuaListener, err = engine.StartPjsuaListener(acnts, 5070, time.Duration(*waitRater)*time.Millisecond); err != nil { t.Fatal(err) } }
// Start Pjsua as listener and register it to receive calls func TestTutKamCallsStartPjsuaListener(t *testing.T) { if !*testCalls { return } var err error acnts := []*engine.PjsuaAccount{ &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}, &engine.PjsuaAccount{Id: "sip:[email protected]", Username: "******", Password: "******", Realm: "*", Registrar: "sip:127.0.0.1:5060"}} if tutKamCallsPjSuaListener, err = engine.StartPjsuaListener(acnts, 5070, *waitRater); err != nil { t.Fatal(err) } }