switchio
switchio copied to clipboard
Remove `subscribe` attribute from `Router` constructor in doc (Readme)
Hi,
Please remove the subscribe attribute getting below error.
Traceback (most recent call last):
File "/home/vivaconnect/backup_old/project/vb/fs_workers/python_files/InboundServer.py", line 3, in
Hey @Azharsayyed5.
Sorry I'm not totally sure i understand the problem.
subscribe
does seem to be defined correctly in Router.__init__()
.
Maybe you can clarify your error a little better?
Only thing I can think of is something going weird in extend_attr_list()
on init.
@goodboy
Sure, The readme file still has the 'subscribe' attribute for Router class of inbound server and as i was Implementing the inbound server while I saw the subscribe attribute in readme and missing in official document.
Initially I took the reference of readme file for inbound server, that's why i got above error.
router = Router( guards={ 'Call-Direction': 'inbound', 'variable_sofia_profile': 'external'}, subscribe=('PLAYBACK_START', 'PLAYBACK_STOP'), )
Hope you understand.
@Azharsayyed5 I still am unclear what you mean.
If the subscribe
kwarg was causing a problem then this test would fail in CI, but it clearly is not.