Author Topic: Removing sip line  (Read 9159 times)

Bell

  • Newbie
  • *
  • Posts: 3
    • View Profile
Removing sip line
« on: April 25, 2013, 12:31:28 AM »
Hi !

I have 2 lines described in accfile.conf, [MF] and [MF2].
After loading all works well, lines register at provider side and I can see them in rmanager console.

status accounts
%%+status:accounts
name=accfile,type=misc;users=2;MF=XXX,MF2=YYY
%%-status

status sip accounts
%%+status:sip accounts
module=sip,protocol=SIP,format=Username|Status;accounts=2;MF=XXX|online,MF1=YYY|online
%%-status

Then I try to delete second sip line.
I delete it from accfile.conf and reload acc file.

accounts reload
accounts
status accounts
%%+status:accounts
name=accfile,type=misc;users=1;MF=XXX
%%-status
Second line was deleted from the list.
But I was suprised to find that second line still in sip accounts list and tries to register at aprovder
status sip accounts
%%+status:sip accounts
module=sip,protocol=SIP,format=Username|Status;accounts=2;MF=XXX|online,MF2=YYY|offline
%%-status
and later
Sniffed 'user.notify' time=1366870980.157782
  thread=0x1954770 'Engine Worker'
  data=(nil)
  retval='(null)'
  param['account'] = 'MF2'
  param['protocol'] = 'sip'
  param['username'] = 'YYYYY'

I check sources and  could not find anything relatetig to deleting line, something like s_lines.remove() or delete line.

How can I fully delete line from list ?
Actually I work with extmodule, accfile was taken to sniff messages.

Thanks in advance.
« Last Edit: April 25, 2013, 02:35:01 AM by Bell »

Diana Cionoiu

  • Administrator
  • Jr. Member
  • *****
  • Posts: 71
    • View Profile
Re: Removing sip line
« Reply #1 on: May 17, 2013, 04:04:31 PM »
just use enable=no instead of deleting it.