Double call on SIP phone swiss voice

sorry for my english!!!

how can I fix one call and only one on my phone by asterisk

my sip phones are configured in Mysql table sip_peers

the configuration setting of the sip phone is one call, but asterisk continue

to contact the phone at any time !!

thank you for help

http://www.voip-info.org/wiki/index.php?page=Asterisk+sip+incominglimit

The column Mysql call-limit has no effect !!!

have you got a special definition in table sip_peers !!!

thank you for help

Then do this:

exten => _X.,1,Set(GROUP()=OUTBOUND_GROUP)
exten => _X.,3,GotoIf($[${GROUP_COUNT()} > 1 ] ? 6)
exten => _X.,4,Set(CDR(accountcode)=${GROUP_COUNT()})
exten => _X.,5,Dial(SIP/swissvoice)
exten => _X.,6,Hangup()

thank you for the solution !!

just a information for a patch :

is there a patch for transfer for manage GROUP_COUNT()

when i use transfered calls the GROUP_COUNT is not decremented

thanks for help!!!