[asterisk-dev] Clearing pick-up groups on Zap/ channels
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Nov 7 12:16:18 MST 2006
On Tue, Nov 07, 2006 at 12:36:51AM +0200, Tzafrir Cohen wrote:
> Actually, the format there is fine: just set:
>
> callgroup=
>
> Sadly, parsing this will not yield the expected result. Seems to be that
> ast_set_group does not know how to parse an empty string correctly.
Seems to be a parsing bug indeed. Actually I believe that using "none"
(or any other non-whitespace, non-numbers string) will work even today
at the price of an ugly warning.
Try the attached test_set_group.c . I'm not sure I understand how sscanf
works there.
./test_set_group "none" # good
./test_set_group "blabla" # good
./test_set_group " " # bad
./test_set_group "" # bad
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_ast_set_group.c
Type: text/x-csrc
Size: 947 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20061107/8adc81a4/test_ast_set_group.c
More information about the asterisk-dev
mailing list